# HG changeset patch # Parent 0eb7958cea3acafdf121724d70a8251e1e391d6a Rename Win_ValuesTestCase to PythonValuesTestCase and enable for non-Windows diff -r 0eb7958cea3a Lib/ctypes/test/test_values.py --- a/Lib/ctypes/test/test_values.py Fri Nov 13 12:29:14 2015 -0500 +++ b/Lib/ctypes/test/test_values.py Fri Nov 13 21:12:43 2015 +0000 @@ -28,8 +28,7 @@ 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 @@ 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))