summaryrefslogtreecommitdiffstats
path: root/Lib/ctypes
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2021-03-06 21:34:03 (GMT)
committerGitHub <noreply@github.com>2021-03-06 21:34:03 (GMT)
commit87ec26b812e9c4095c017dc60f246eda37b83ab2 (patch)
tree5f690c46fb72f2d2e368c086f7310a46ea6368f1 /Lib/ctypes
parent5eb7796b7f3aae91b145ccea51b528662f3b5ce1 (diff)
downloadcpython-87ec26b812e9c4095c017dc60f246eda37b83ab2.zip
cpython-87ec26b812e9c4095c017dc60f246eda37b83ab2.tar.gz
cpython-87ec26b812e9c4095c017dc60f246eda37b83ab2.tar.bz2
bpo-43372: Use _freeze_importlib for regen-frozen. (GH-24759)
This approach ensures the code matches the interpreter version. Previously, PYTHON_FOR_REGEN was used to generate the code, which might be wrong. The marshal format for code objects has changed with bpo-42246, commit 877df851. Update the code and the expected code sizes in ctypes test_frozentable.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r--Lib/ctypes/test/test_values.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/ctypes/test/test_values.py b/Lib/ctypes/test/test_values.py
index 4412829..b38b63f 100644
--- a/Lib/ctypes/test/test_values.py
+++ b/Lib/ctypes/test/test_values.py
@@ -80,9 +80,9 @@ class PythonValuesTestCase(unittest.TestCase):
continue
items.append((entry.name.decode("ascii"), entry.size))
- expected = [("__hello__", 125),
- ("__phello__", -125),
- ("__phello__.spam", 125),
+ expected = [("__hello__", 139),
+ ("__phello__", -139),
+ ("__phello__.spam", 139),
]
self.assertEqual(items, expected, "PyImport_FrozenModules example "
"in Doc/library/ctypes.rst may be out of date")