1 2 3 4 5 6 7
# Tests for sys module types import sys # === Verify type() returns _io.TextIOWrapper for stdout/stderr === assert str(type(sys.stdout)) == "<class '_io.TextIOWrapper'>" assert str(type(sys.stderr)) == "<class '_io.TextIOWrapper'>"