From 20c3b5562213d70c67b0380292167202a323419a Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 18 Apr 2009 14:49:19 +0000 Subject: [PATCH] use the more offical skipping api --- Lib/test/test_io.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py index 6658d78f6c5..74dbfd2ccaf 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: