diff options
| author | Guido van Rossum <guido@python.org> | 2007-07-10 20:59:22 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-07-10 20:59:22 +0000 |
| commit | 535a5ef196ff60141a1ecea732f55fbd72f8d9d7 (patch) | |
| tree | bdd75c0b5bf10b4bd04b8aa6296a5a012d648965 /Lib/test/test_file.py | |
| parent | 558ca847308cc35ed387cf5800269b647c87a51d (diff) | |
| download | cpython-git-535a5ef196ff60141a1ecea732f55fbd72f8d9d7.tar.gz | |
Fix test_file.py. It was passing on OSX for the wrong reason
(somehow OSX marks I/O devices as seekable).
Diffstat (limited to 'Lib/test/test_file.py')
| -rw-r--r-- | Lib/test/test_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_file.py b/Lib/test/test_file.py index 076400015c..62b4693c23 100644 --- a/Lib/test/test_file.py +++ b/Lib/test/test_file.py @@ -140,12 +140,12 @@ class OtherFileTests(unittest.TestCase): def testStdin(self): # This causes the interpreter to exit on OSF1 v5.1. if sys.platform != 'osf1V5': - self.assertRaises(ValueError, sys.stdin.seek, -1) + 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(ValueError, sys.stdin.truncate) + self.assertRaises((IOError, ValueError), sys.stdin.truncate) def testBadModeArgument(self): # verify that we get a sensible error message for bad mode argument |
