Home - Summaries: (main) : (py3.11) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy/module/imp/test/test_import.py::TestPycStuff::()::test_pyc_magic_changes2

self = <pypy.module.imp.test.test_import.TestPycStuff instance at 0x000002a30e04ace0>

    def test_pyc_magic_changes2(self):
        from pypy.tool.lib_pypy import LIB_PYTHON
        from pypy.interpreter.pycode import default_magic
        from hashlib import sha256
        opcode_path = LIB_PYTHON.join('opcode.py')
        h = sha256()
        # very simple test: hard-code the hash of lib-python/3/opcode.py and the
        # default magic. if you change stdlib_opcode, please update the hash
        # below, as well as incrementing the magic number in pycode.py
        with opcode_path.open("rb") as f:
            h.update(f.read())
>       assert h.hexdigest() == '4082bd96b9aacf9672a2c5196a6a3b6caf5e9de0071fe4e43aa642b0860381a4'
E       assert '6aac1562aa70...84bc9ec6821eb' == '4082bd96b9aac...642b0860381a4'
E         - 6aac1562aa70d71d285e9a084b461739a37a18dd020aea463f984bc9ec6821eb
E         + 4082bd96b9aacf9672a2c5196a6a3b6caf5e9de0071fe4e43aa642b0860381a4

module\imp\test\test_import.py:983: AssertionError
builder: own-win-x86-64 build #2303+
test: pypy/module/imp/test/test_import.py::TestPycStuff::()::test_pyc_magic_changes2