[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

Elvis Pranskevichus report at bugs.python.org
Fri Sep 21 18:49:10 EDT 2018


Elvis Pranskevichus <elvis at magic.io> added the comment:

> In particular, if a build system sets SOURCE_DATE_EPOCH without
specifying a pyc format for py_compile or compileall, Python 3.7 will
give you checked hashes by default

Actually, py_compile will _force_ the CHECKED_HASH mode if SOURCE_DATE_EPOCH is set, regardless of what you specified for py_compile or compileall.  I'm not sure if that's actually intended or a bug.

The fix for the tests is to actually be aware of py_compile behavior and control for SOURCE_DATE_EPOCH.  I submitted a PR with a fix.

----------
nosy: +Elvis.Pranskevichus

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34022>
_______________________________________


More information about the Python-bugs-list mailing list