Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows

This commit is contained in:
Martin Panter 2015-11-26 02:36:26 +00:00
parent c898d8b990
commit aa785555b1
1 changed files with 2 additions and 3 deletions

View File

@ -28,8 +28,7 @@ class ValuesTestCase(unittest.TestCase):
ctdll = CDLL(_ctypes_test.__file__)
self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol")
@unittest.skipUnless(sys.platform == 'win32', 'Windows-specific test')
class Win_ValuesTestCase(unittest.TestCase):
class PythonValuesTestCase(unittest.TestCase):
"""This test only works when python itself is a dll/shared library"""
def test_optimizeflag(self):
@ -76,7 +75,7 @@ class Win_ValuesTestCase(unittest.TestCase):
if entry.name in bootstrap_expected:
bootstrap_seen.append(entry.name)
self.assertTrue(entry.size,
"{} was reported as having no size".format(entry.name))
"{!r} was reported as having no size".format(entry.name))
continue
items.append((entry.name, entry.size))