You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
More run tests
This commit is contained in:
@@ -53,8 +53,8 @@ check-3.3: check-bytecode
|
||||
|
||||
#: Run working tests from Python 3.4
|
||||
check-3.4: check-bytecode check-3.4-ok check-2.7-ok
|
||||
$(PYTHON) test_pythonlib.py --bytecode-3.4 --weak-verify $(COMPILE)
|
||||
$(PYTHON) test_pythonlib.py --bytecode-3.4-run --verify-run
|
||||
$(PYTHON) test_pythonlib.py --bytecode-3.4 --weak-verify $(COMPILE)
|
||||
|
||||
#: Run working tests from Python 3.5
|
||||
check-3.5: check-bytecode
|
||||
|
Binary file not shown.
BIN
test/bytecode_3.3_run/10_mixed_boolean.pyc
Normal file
BIN
test/bytecode_3.3_run/10_mixed_boolean.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.4_run/10_mixed_boolean.pyc
Normal file
BIN
test/bytecode_3.4_run/10_mixed_boolean.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
test/bytecode_3.5_run/10_mixed_boolean.pyc
Normal file
BIN
test/bytecode_3.5_run/10_mixed_boolean.pyc
Normal file
Binary file not shown.
@@ -1,3 +1,4 @@
|
||||
# Self-checking test.
|
||||
# Python 3 bug in not detecting the end bounds of if elif.
|
||||
def testit(b):
|
||||
if b == 1:
|
||||
|
@@ -1,4 +1,5 @@
|
||||
# Self-checking 3.6+ string interpolation tests
|
||||
# Self-checking test.
|
||||
# String interpolation tests
|
||||
|
||||
var1 = 'x'
|
||||
var2 = 'y'
|
||||
|
@@ -1,6 +1,10 @@
|
||||
# Self-checking test.
|
||||
# Tests:
|
||||
# forstmt ::= SETUP_LOOP expr _for store
|
||||
# for_block POP_BLOCK COME_FROM
|
||||
# for ::= SETUP_LOOP expr for_iter store
|
||||
# for_block POP_BLOCK COME_FROM
|
||||
# In 3.8+
|
||||
# for ::= expr for_iter store
|
||||
# for_block POP_BLOCK COME_FROM
|
||||
|
||||
c = 0
|
||||
for a in [1]:
|
||||
|
@@ -1,12 +1,24 @@
|
||||
# Self-checking test.
|
||||
b = True
|
||||
assert b, 'b = True'
|
||||
c = False
|
||||
assert not c, 'c = False'
|
||||
d = True
|
||||
a = b and c or d
|
||||
assert a, 'b and c or d'
|
||||
a = (b or c) and d
|
||||
assert a, '(b or c) and d'
|
||||
a = b or c or d
|
||||
assert a, 'b or c or d'
|
||||
a = b and c and d
|
||||
assert not a, 'b and c and d'
|
||||
a = b or c and d
|
||||
assert a
|
||||
a = b and (c or d)
|
||||
assert a
|
||||
a = b and c or d
|
||||
assert a
|
||||
a = (b or c and d) and b
|
||||
assert a
|
||||
a = (b or c and d or a) and b
|
||||
assert a
|
||||
|
Reference in New Issue
Block a user