◐ Shell
clean mode source ↗

bpo-29514: Check magic number for bugfix release by appeltel · Pull Request #54 · python/cpython

Add a dict importlib.util.EXPECTED_MAGIC_NUMBERS which
details the initial and expected pyc magic number for
each minor release. This gives a mechanism for users to
check if the magic number has changed within a release and
for a test to ensure procedure is followed if a change is
necessary.

Add a test to check the current MAGIC_NUMBER against the
expected number for the release if the current release is
at candidate or final level. On test failure, describe to
the developer the procedure for changing the magic number.

ncoghlan

ambv

Simplify the magic number release test by removing
EXPECTED_MAGIC_NUMBERS table and making the expected
magic number self-contained within the test.

BPO: 29514

ncoghlan

Improve the execution of the magic number test by
using skipUnless for alpha and beta releases, and
directly inheriting from unittest.TestCase rather than
using the machinery for the other tests. Also improve
the error message to explain the reason for caution in
changing the magic number.

BPO: 29514

ncoghlan

serhiy-storchaka

serhiy-storchaka

lazka added a commit to lazka/cpython that referenced this pull request

Nov 10, 2021
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

lazka added a commit to lazka/cpython that referenced this pull request

Nov 21, 2021
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jan 23, 2022
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Dec 8, 2022
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

lazka added a commit to lazka/cpython that referenced this pull request

Mar 2, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

mgmacias95 pushed a commit to mgmacias95/cpython that referenced this pull request

Mar 27, 2023

lazka added a commit to lazka/cpython that referenced this pull request

Apr 7, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

lazka added a commit to lazka/cpython that referenced this pull request

Apr 16, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 18, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 20, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 23, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 24, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

naveen521kk pushed a commit to naveen521kk/cpython that referenced this pull request

Jun 25, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

oraluben pushed a commit to oraluben/cpython that referenced this pull request

Jul 12, 2023

lazka added a commit to lazka/cpython that referenced this pull request

Jul 28, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

lazka added a commit to lazka/cpython that referenced this pull request

Aug 27, 2023
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

lazka added a commit to lazka/cpython that referenced this pull request

Feb 10, 2024
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

lazka added a commit to lazka/cpython that referenced this pull request

Aug 25, 2024
The versions checked here are 20 years old. Also dllwrap
has started to emit a deprecation warning in the latest release
spamming the build logs.

Fixes python#54

This was referenced

Feb 11, 2025