You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Adjust assert transform for new "if_and" rule
This commit is contained in:
@@ -35,7 +35,11 @@ SKIP_TESTS=(
|
||||
[test_urllib2net.py]=1 # is interactive?
|
||||
[test_urllibnet.py]=1 # it fails on its own
|
||||
[test_winreg.py]=1 # it fails on its own
|
||||
[test_winsound.py[=1 # it fails on its own
|
||||
[test_winsound.py]=1 # it fails on its own
|
||||
[test_zipfile64.py]=1 # Runs ok but takes 204 seconds
|
||||
[test_zlib]=1 # fails on its own
|
||||
)
|
||||
|
||||
if (( batch )) ; then
|
||||
SKIP_TESTS[test_doctest.py]=1 # Fails on ppc64le
|
||||
fi
|
||||
|
@@ -145,7 +145,12 @@ class TreeTransform(GenericASTTraversal, object):
|
||||
assert_expr = testtrue_or_false[0]
|
||||
jump_cond = NoneToken
|
||||
else:
|
||||
assert testtrue_or_false == "testfalse"
|
||||
assert_expr = testtrue_or_false[0]
|
||||
if assert_expr == "testfalse_not_and":
|
||||
# FIXME: come pack to stuff like this
|
||||
return node
|
||||
|
||||
jump_cond = testtrue_or_false[1]
|
||||
assert_expr.kind = "assert_expr"
|
||||
|
||||
|
Reference in New Issue
Block a user