Commit 2f3c7693 authored by Ezio Melotti's avatar Ezio Melotti

#14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat.

parent 48d98c8a
......@@ -154,16 +154,6 @@ class OtherFileTests(unittest.TestCase):
f.close()
self.fail('%r is an invalid file mode' % mode)
def testStdin(self):
# This causes the interpreter to exit on OSF1 v5.1.
if sys.platform != 'osf1V5':
self.assertRaises((IOError, ValueError), sys.stdin.seek, -1)
else:
print((
' Skipping sys.stdin.seek(-1), it may crash the interpreter.'
' Test manually.'), file=sys.__stdout__)
self.assertRaises((IOError, ValueError), sys.stdin.truncate)
def testBadModeArgument(self):
# verify that we get a sensible error message for bad mode argument
bad_mode = "qwerty"
......
......@@ -744,6 +744,7 @@ Nigel O'Brian
Kevin O'Connor
Tim O'Malley
Zooko O'Whielacronx
Elena Oat
Pascal Oberndoerfer
Jeffrey Ollie
Adam Olsen
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment