Skip to content

Commit aa78555

Browse files
committed
Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows
1 parent c898d8b commit aa78555

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/ctypes/test/test_values.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def test_undefined(self):
2828
ctdll = CDLL(_ctypes_test.__file__)
2929
self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol")
3030

31-
@unittest.skipUnless(sys.platform == 'win32', 'Windows-specific test')
32-
class Win_ValuesTestCase(unittest.TestCase):
31+
class PythonValuesTestCase(unittest.TestCase):
3332
"""This test only works when python itself is a dll/shared library"""
3433

3534
def test_optimizeflag(self):
@@ -76,7 +75,7 @@ class struct_frozen(Structure):
7675
if entry.name in bootstrap_expected:
7776
bootstrap_seen.append(entry.name)
7877
self.assertTrue(entry.size,
79-
"{} was reported as having no size".format(entry.name))
78+
"{!r} was reported as having no size".format(entry.name))
8079
continue
8180
items.append((entry.name, entry.size))
8281

0 commit comments

Comments
 (0)