Skip to content

Commit aca93c8

Browse files
[3.15] Update bytecode magic number for the 3.15 release candidate (GH-154881) (#154955)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 608761b commit aca93c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/test/test_importlib/test_util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class MagicNumberTests(unittest.TestCase):
633633
'only applies to candidate or final python release levels'
634634
)
635635
def test_magic_number(self):
636-
# Each python minor release should generally have a MAGIC_NUMBER
636+
# Each Python feature release should generally have a MAGIC_NUMBER
637637
# that does not change once the release reaches candidate status.
638638

639639
# Once a release reaches candidate status, the value of the constant
@@ -643,11 +643,11 @@ def test_magic_number(self):
643643

644644
# In exceptional cases, it may be required to change the MAGIC_NUMBER
645645
# for a maintenance release. In this case the change should be
646-
# discussed in python-dev. If a change is required, community
646+
# discussed in on Discourse. If a change is required, community
647647
# stakeholders such as OS package maintainers must be notified
648648
# in advance. Such exceptional releases will then require an
649649
# adjustment to this test case.
650-
EXPECTED_MAGIC_NUMBER = 3625
650+
EXPECTED_MAGIC_NUMBER = 3666
651651
actual = int.from_bytes(importlib.util.MAGIC_NUMBER[:2], 'little')
652652

653653
msg = (
@@ -659,7 +659,7 @@ def test_magic_number(self):
659659
"magic number in this test to the current MAGIC_NUMBER to "
660660
"continue with the release.\n\n"
661661
"Changing the MAGIC_NUMBER for a maintenance release "
662-
"requires discussion in python-dev and notification of "
662+
"requires discussion on Discourse and notification of "
663663
"community stakeholders."
664664
)
665665
self.assertEqual(EXPECTED_MAGIC_NUMBER, actual, msg)

0 commit comments

Comments
 (0)