diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-01 15:59:11 +0000 | 
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-11-01 15:59:11 +0000 | 
| commit | c9e92167ac1a1900981f905da7a415cc2cb404d0 (patch) | |
| tree | 298596aac9e56fbc4b0b2ce420ce09fa087e7375 | |
| parent | 5800b271043d52d34f22f68ad6c0339d2c4bc04a (diff) | |
| download | cpython-git-c9e92167ac1a1900981f905da7a415cc2cb404d0.tar.gz | |
Fix test skipping in multibyte codec tests
| -rw-r--r-- | Lib/test/test_bytes.py | 2 | ||||
| -rw-r--r-- | Lib/test/test_multibytecodec_support.py | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index e39b9ead83..4a93e8caf0 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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: diff --git a/Lib/test/test_multibytecodec_support.py b/Lib/test/test_multibytecodec_support.py index 5e68856b7a..e4036bf2c6 100644 --- a/Lib/test/test_multibytecodec_support.py +++ b/Lib/test/test_multibytecodec_support.py @@ -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)  | 
