[Python-checkins] cpython: Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows

martin.panter python-checkins at python.org
Wed Nov 25 21:56:36 EST 2015


https://hg.python.org/cpython/rev/6a8fbb97c8d8
changeset: 99364:6a8fbb97c8d8
user: Martin Panter <vadmium+py at gmail.com>
date: Thu Nov 26 02:36:26 2015 +0000
summary:
 Issue #25622: Rename to PythonValuesTestCase and enable for non-Windows
files:
 Lib/ctypes/test/test_values.py | 5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py
--- a/Lib/ctypes/test/test_values.py
+++ b/Lib/ctypes/test/test_values.py
@@ -28,8 +28,7 @@
 ctdll = CDLL(_ctypes_test.__file__)
 self.assertRaises(ValueError, c_int.in_dll, ctdll, "Undefined_Symbol")
 
- at 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))
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /