Adjust assert transform for new "if_and" rule

This commit is contained in:
rocky
2020-02-04 21:28:08 -05:00
parent 621bc96e8a
commit 68c9de60a5
2 changed files with 10 additions and 1 deletions

View File

@@ -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

View File

@@ -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"