Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0cde3f2

Browse files
committed
Remove/change some comments.
Signed-off-by: Soumendra Ganguly <[email protected]>
1 parent 6546938 commit 0cde3f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_pty.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ def setUp(self):
124124
self.stdin_cols, 0, 0)
125125
self.addCleanup(_set_term_winsz, pty.STDIN_FILENO, old_stdin_winsz)
126126
except OSError:
127-
# possible reason: current stdin is not a tty
128127
pass
129128

130129
def handle_sig(self, sig, frame):
@@ -145,7 +144,7 @@ def test_openpty(self):
145144
try:
146145
mode = tty.tcgetattr(pty.STDIN_FILENO)
147146
except tty.error:
148-
# possible reason: current stdin is not a tty
147+
# not a tty or bad/closed fd
149148
debug("tty.tcgetattr(pty.STDIN_FILENO) failed")
150149
mode = None
151150

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

0 commit comments

Comments
 (0)