Commit aa785555 authored by Martin Panter's avatar Martin Panter

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

parent c898d8b9
...@@ -28,8 +28,7 @@ class ValuesTestCase(unittest.TestCase): ...@@ -28,8 +28,7 @@ class ValuesTestCase(unittest.TestCase):
ctdll = CDLL(_ctypes_test.__file__) ctdll = CDLL(_ctypes_test.__file__)
self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol") self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol")
@unittest.skipUnless(sys.platform == 'win32', 'Windows-specific test') class PythonValuesTestCase(unittest.TestCase):
class Win_ValuesTestCase(unittest.TestCase):
"""This test only works when python itself is a dll/shared library""" """This test only works when python itself is a dll/shared library"""
def test_optimizeflag(self): def test_optimizeflag(self):
...@@ -76,7 +75,7 @@ class Win_ValuesTestCase(unittest.TestCase): ...@@ -76,7 +75,7 @@ class Win_ValuesTestCase(unittest.TestCase):
if entry.name in bootstrap_expected: if entry.name in bootstrap_expected:
bootstrap_seen.append(entry.name) bootstrap_seen.append(entry.name)
self.assertTrue(entry.size, self.assertTrue(entry.size,
"{} was reported as having no size".format(entry.name)) "{!r} was reported as having no size".format(entry.name))
continue continue
items.append((entry.name, entry.size)) items.append((entry.name, entry.size))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment