summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-05-15 00:41:40 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-05-15 00:41:40 (GMT)
commit4dd27f0adcee901bff19c536d8442d666440a415 (patch)
tree78bd83d4366b25dee1ad5ad71edd88dbb40afbff /Lib
parent38e2f175ea7a352bc452f4e3ea6f5bcabd3dc5cf (diff)
parentf47a40034763e9877861d995402715ca0dedb17c (diff)
downloadcpython-4dd27f0adcee901bff19c536d8442d666440a415.zip
cpython-4dd27f0adcee901bff19c536d8442d666440a415.tar.gz
cpython-4dd27f0adcee901bff19c536d8442d666440a415.tar.bz2
Issue #25533: Merge frozen module docs from 3.5
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ctypes/test/test_values.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py
index c7c78ce..5a3a47f 100644
--- a/Lib/ctypes/test/test_values.py
+++ b/Lib/ctypes/test/test_values.py
@@ -77,13 +77,14 @@ class PythonValuesTestCase(unittest.TestCase):
self.assertTrue(entry.size,
"{!r} was reported as having no size".format(entry.name))
continue
- items.append((entry.name, entry.size))
+ items.append((entry.name.decode("ascii"), entry.size))
- expected = [(b"__hello__", 161),
- (b"__phello__", -161),
- (b"__phello__.spam", 161),
+ expected = [("__hello__", 161),
+ ("__phello__", -161),
+ ("__phello__.spam", 161),
]
- self.assertEqual(items, expected)
+ self.assertEqual(items, expected, "PyImport_FrozenModules example "
+ "in Doc/library/ctypes.rst may be out of date")
self.assertEqual(sorted(bootstrap_seen), bootstrap_expected,
"frozen bootstrap modules did not match PyImport_FrozenModules")