summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_file.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-07-25 03:21:00 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-07-25 03:21:00 (GMT)
commitb042daa5a7fae86f6dc9c568970ce4c57ea403e2 (patch)
tree1013625fe3ffae8370764d47c6c7e6e8ba22569b /Lib/test/test_file.py
parent61b0c672b5e9ba1cf564947ecb38d175fd70ea7e (diff)
downloadcpython-b042daa5a7fae86f6dc9c568970ce4c57ea403e2.zip
cpython-b042daa5a7fae86f6dc9c568970ce4c57ea403e2.tar.gz
cpython-b042daa5a7fae86f6dc9c568970ce4c57ea403e2.tar.bz2
#14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat.
Diffstat (limited to 'Lib/test/test_file.py')
-rw-r--r--Lib/test/test_file.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py
index a78ddf3..76b1694 100644
--- a/Lib/test/test_file.py
+++ b/Lib/test/test_file.py
@@ -148,16 +148,6 @@ class OtherFileTests:
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"