We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c03a818 commit ccd129bCopy full SHA for ccd129b
test/Makefile
@@ -32,19 +32,19 @@ check-3.2: check-bytecode
32
33
#: Run working tests from Python 3.3
34
check-3.3: check-bytecode
35
- $(PYTHON) test_pythonlib.py --bytecode-3.3 --weak-verify $(COMPILE)
+ $(PYTHON) test_pythonlib.py --bytecode-3.3 --verify $(COMPILE)
36
37
#: Run working tests from Python 3.4
38
check-3.4: check-bytecode check-3.4-ok check-2.7-ok
39
- $(PYTHON) test_pythonlib.py --bytecode-3.4 --weak-verify $(COMPILE)
+ $(PYTHON) test_pythonlib.py --bytecode-3.4 --verify $(COMPILE)
40
41
#: Run working tests from Python 3.5
42
check-3.5: check-bytecode
43
- $(PYTHON) test_pythonlib.py --bytecode-3.5 --weak-verify $(COMPILE)
+ $(PYTHON) test_pythonlib.py --bytecode-3.5 --verify $(COMPILE)
44
45
#: Run working tests from Python 3.6
46
check-3.6: check-bytecode
47
- $(PYTHON) test_pythonlib.py --bytecode-3.6 --weak-verify $(COMPILE)
+ $(PYTHON) test_pythonlib.py --bytecode-3.6 --verify $(COMPILE)
48
49
#: Check deparsing only, but from a different Python version
50
check-disasm:
uncompyle6/verify.py
@@ -400,9 +400,10 @@ def compare_code_with_srcfile(pyc_filename, src_filename, weak_verify=False):
400
401
def compare_files(pyc_filename1, pyc_filename2, weak_verify=False):
402
"""Compare two .pyc files."""
403
- version, timestamp, magic_int1, code_obj1, is_pypy = uncompyle6.load_module(pyc_filename1)
404
- version, timestamp, magic_int2, code_obj2, is_pypy = uncompyle6.load_module(pyc_filename2)
405
- cmp_code_objects(version, is_pypy, code_obj1, code_obj2, ignore_code=weak_verify)
+ version1, timestamp, magic_int1, code_obj1, is_pypy = uncompyle6.load_module(pyc_filename1)
+ version2, timestamp, magic_int2, code_obj2, is_pypy = uncompyle6.load_module(pyc_filename2)
+ weak_verify = weak_verify or (magic_int1 != magic_int2)
406
+ cmp_code_objects(version1, is_pypy, code_obj1, code_obj2, ignore_code=weak_verify)
407
408
if __name__ == '__main__':
409
t1 = Token('LOAD_CONST', None, 'code_object _expandLang', 52)
0 commit comments