]> granicus.if.org Git - python/commit
[2.7] bpo-29514: Check magic number for bugfix releases
authorNick Coghlan <ncoghlan@gmail.com>
Tue, 13 Jun 2017 10:58:48 +0000 (20:58 +1000)
committerGitHub <noreply@github.com>
Tue, 13 Jun 2017 10:58:48 +0000 (20:58 +1000)
commita51f12f154baef9e10698f43bd19b36d01af62f4
tree1e397bee9bfc7dd4fdddec7b4e0a7b9cc15e3c6d
parentbdd3567ccce2e7f80b155963e8cf6aa3576e1380
[2.7] bpo-29514: Check magic number for bugfix releases

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_import_magic.py [new file with mode: 0644]