summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-04-19 00:10:36 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-04-19 00:10:36 (GMT)
commitc50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25 (patch)
tree835e5b07cf3b7366b82934b129b9166e90aacbe0 /Lib/test
parentcf4c749680bc178f2afb469f8828790a7268d137 (diff)
downloadcpython-c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25.zip
cpython-c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25.tar.gz
cpython-c50cb8e9c177fb5c97ea34ef73fe2f40bef0fb25.tar.bz2
Fix use of test skipping API.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_io.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 9ae1d28..439af7a 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):
- self.skip("{0} does not exist".format(zero))
+ self.skipTest("{0} does not exist".format(zero))
if sys.maxsize > 0x7FFFFFFF:
- self.skip("test can only run in a 32-bit address space")
+ self.skipTest("test can only run in a 32-bit address space")
if support.real_max_memuse < support._2G:
- self.skip("test requires at least 2GB of memory")
+ self.skipTest("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: