Home - Summaries: (main) : (py3.11) : (py3.12) : 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 0x144a6568>

    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() == '6aac1562aa70d71d285e9a084b461739a37a18dd020aea463f984bc9ec6821eb'
E       assert '3944b3bbad67...158b7f08d5509' == '6aac1562aa70d...84bc9ec6821eb'
E         - 3944b3bbad677b389a3a263ec53ad973bf484206b99eac2f891158b7f08d5509
E         + 6aac1562aa70d71d285e9a084b461739a37a18dd020aea463f984bc9ec6821eb

module/imp/test/test_import.py:983: AssertionError
builder: own-linux-x86-32 build #9499+
test: pypy/module/imp/test/test_import.py::TestPycStuff::()::test_pyc_magic_changes2