]> granicus.if.org Git - python/commitdiff
Fix test skipping in multibyte codec tests
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 1 Nov 2009 15:59:11 +0000 (15:59 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 1 Nov 2009 15:59:11 +0000 (15:59 +0000)
Lib/test/test_bytes.py
Lib/test/test_multibytecodec_support.py

index e39b9ead83318ccbe3a6fb908eae14fc367f92d5..4a93e8caf0db12cc140fb79e54a0214376fee042 100644 (file)
@@ -935,7 +935,7 @@ class AssortedBytesTest(unittest.TestCase):
             self.assertRaises(BytesWarning, operator.eq, bytearray(b''), '')
             self.assertRaises(BytesWarning, operator.ne, bytearray(b''), '')
         else:
-            # raise test.support.TestSkipped("BytesWarning is needed for this test: use -bb option")
+            # self.skipTest("BytesWarning is needed for this test: use -bb option")
             pass
 
     # Optimizations:
index 5e68856b7a06bf1d0dc22bc27d5baf6021220f66..e4036bf2c6a660f5fc5185704213ef0977ea6531 100644 (file)
@@ -279,7 +279,7 @@ class TestBase_Mapping(unittest.TestCase):
         try:
             self.open_mapping_file() # test it to report the error early
         except IOError:
-            raise support.TestSkipped("Could not retrieve "+self.mapfileurl)
+            self.skipTest("Could not retrieve "+self.mapfileurl)
 
     def open_mapping_file(self):
         return support.open_urlresource(self.mapfileurl)