]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.6] bpo-29514: Check magic number for bugfix releases (#2157)
authorNick Coghlan <ncoghlan@gmail.com>
Tue, 13 Jun 2017 10:32:46 +0000 (20:32 +1000)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 10:32:46 +0000 (20:32 +1000)
commit92e9e35292d4e2044c25970389f3cdb30cfc903a
tree47cad5df9f869a9be67e756302784604597823b7
parent932946ca14168e556293d2508c8eebb23a56a2b2
[3.6] bpo-29514: Check magic number for bugfix releases (#2157)

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.

This ensures that pre-merge CI will automatically pick up
on magic number changes in maintenance releases (and
explain why those are problematic), rather than relying on
all core developers to be aware of the implications of
such changes.
Lib/test/test_importlib/test_util.py