[Python-checkins] r71737 - python/branches/py3k/Lib/test/test_io.py

antoine.pitrou python-checkins at python.org
Sun Apr 19 02:10:36 CEST 2009


Author: antoine.pitrou
Date: Sun Apr 19 02:10:36 2009
New Revision: 71737

Log:
Fix use of test skipping API.



Modified:
   python/branches/py3k/Lib/test/test_io.py

Modified: python/branches/py3k/Lib/test/test_io.py
==============================================================================
--- python/branches/py3k/Lib/test/test_io.py	(original)
+++ python/branches/py3k/Lib/test/test_io.py	Sun Apr 19 02:10:36 2009
@@ -509,11 +509,11 @@
         # 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:


More information about the Python-checkins mailing list