Skip to content
Prev Previous commit
Next Next commit
Remove/change some comments.
Signed-off-by: Soumendra Ganguly <soumendraganguly@gmail.com>
  • Loading branch information
8vasu committed Nov 20, 2020
commit 0cde3f28ff866af19da331c1aace5439846dd21a
4 changes: 1 addition & 3 deletions Lib/test/test_pty.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def setUp(self):
self.stdin_cols, 0, 0)
self.addCleanup(_set_term_winsz, pty.STDIN_FILENO, old_stdin_winsz)
except OSError:
# possible reason: current stdin is not a tty
pass

def handle_sig(self, sig, frame):
Expand All @@ -145,7 +144,7 @@ def test_openpty(self):
try:
mode = tty.tcgetattr(pty.STDIN_FILENO)
except tty.error:
# possible reason: current stdin is not a tty
# not a tty or bad/closed fd
debug("tty.tcgetattr(pty.STDIN_FILENO) failed")
mode = None

Expand All @@ -165,7 +164,6 @@ def test_openpty(self):
self.assertEqual(new_stdin_winsz, target_stdin_winsz,
"pty.STDIN_FILENO window size unchanged")
except OSError:
# possible reason: current stdin is not a tty
warnings.warn("Failed to set pty.STDIN_FILENO window size")
pass

Expand Down