]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update bytecode magic number for the 3.15 release candidate (#154881)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Thu, 30 Jul 2026 19:48:17 +0000 (22:48 +0300)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2026 19:48:17 +0000 (22:48 +0300)
Lib/test/test_importlib/test_util.py

index 8ec2dcd69e58b636a0042a1798a70968e586bea9..8a911c1b751a4b45d21b17e464b641f624087a19 100644 (file)
@@ -633,7 +633,7 @@ class MagicNumberTests(unittest.TestCase):
         'only applies to candidate or final python release levels'
     )
     def test_magic_number(self):
-        # Each python minor release should generally have a MAGIC_NUMBER
+        # Each Python feature release should generally have a MAGIC_NUMBER
         # that does not change once the release reaches candidate status.
 
         # Once a release reaches candidate status, the value of the constant
@@ -643,11 +643,11 @@ class MagicNumberTests(unittest.TestCase):
 
         # In exceptional cases, it may be required to change the MAGIC_NUMBER
         # for a maintenance release. In this case the change should be
-        # discussed in python-dev. If a change is required, community
+        # discussed in on Discourse. If a change is required, community
         # stakeholders such as OS package maintainers must be notified
         # in advance. Such exceptional releases will then require an
         # adjustment to this test case.
-        EXPECTED_MAGIC_NUMBER = 3625
+        EXPECTED_MAGIC_NUMBER = 3666
         actual = int.from_bytes(importlib.util.MAGIC_NUMBER[:2], 'little')
 
         msg = (
@@ -659,7 +659,7 @@ class MagicNumberTests(unittest.TestCase):
             "magic number in this test to the current MAGIC_NUMBER to "
             "continue with the release.\n\n"
             "Changing the MAGIC_NUMBER for a maintenance release "
-            "requires discussion in python-dev and notification of "
+            "requires discussion on Discourse and notification of "
             "community stakeholders."
         )
         self.assertEqual(EXPECTED_MAGIC_NUMBER, actual, msg)