mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Issue #25533: Merge frozen module docs from 3.5
This commit is contained in:
commit
4dd27f0adc
4 changed files with 15 additions and 13 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue