diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-18 14:49:19 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-18 14:49:19 (GMT) |
commit | 20c3b5562213d70c67b0380292167202a323419a (patch) | |
tree | cf8b73bd77ac80dfe488a1be858970a588381403 /Lib/test/test_io.py | |
parent | 9990e8c264226f2b6b4883c28ced6437ce4d2b49 (diff) | |
download | cpython-20c3b5562213d70c67b0380292167202a323419a.zip cpython-20c3b5562213d70c67b0380292167202a323419a.tar.gz cpython-20c3b5562213d70c67b0380292167202a323419a.tar.bz2 |
use the more offical skipping api
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r-- | Lib/test/test_io.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 6658d78..74dbfd2 100644 --- a/Lib/test/test_io.py +++ b/Lib/test/test_io.py @@ -509,11 +509,11 @@ class IOTest(unittest.TestCase): # Issue #1174606: reading from an unbounded stream such as /dev/zero. zero = "/dev/zero" if not os.path.exists(zero): - raise unittest.SkipTest("{0} does not exist".format(zero)) + self.skip("{0} does not exist".format(zero)) if sys.maxsize > 0x7FFFFFFF: - raise unittest.SkipTest("test can only run in a 32-bit address space") + self.skip("test can only run in a 32-bit address space") if support.real_max_memuse < support._2G: - raise unittest.SkipTest("test requires at least 2GB of memory") + self.skip("test requires at least 2GB of memory") with open(zero, "rb", buffering=0) as f: self.assertRaises(OverflowError, f.read) with open(zero, "rb") as f: |