Issue 19572: More silently skipped tests explicitly skipped.

This commit is contained in:
Zachary Ware 2013-12-08 00:44:27 -06:00
commit 101d9e7250
35 changed files with 135 additions and 142 deletions

View file

@ -272,7 +272,7 @@ class ImportTests(unittest.TestCase):
if found[0] is not None:
found[0].close()
if found[2][2] != imp.C_EXTENSION:
return
self.skipTest("found module doesn't appear to be a C extension")
imp.load_module(name, None, *found[1:])
@unittest.skipIf(sys.dont_write_bytecode,