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

Skip to content

Commit b042daa

Browse files
committed
#14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat.
1 parent 61b0c67 commit b042daa

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Lib/test/test_file.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,6 @@ def testModeStrings(self):
148148
f.close()
149149
self.fail('%r is an invalid file mode' % mode)
150150

151-
def testStdin(self):
152-
# This causes the interpreter to exit on OSF1 v5.1.
153-
if sys.platform != 'osf1V5':
154-
self.assertRaises((IOError, ValueError), sys.stdin.seek, -1)
155-
else:
156-
print((
157-
' Skipping sys.stdin.seek(-1), it may crash the interpreter.'
158-
' Test manually.'), file=sys.__stdout__)
159-
self.assertRaises((IOError, ValueError), sys.stdin.truncate)
160-
161151
def testBadModeArgument(self):
162152
# verify that we get a sensible error message for bad mode argument
163153
bad_mode = "qwerty"

0 commit comments

Comments
 (0)