From 68c9de60a59e51d0f36d6feae5b0ca027c6bcfac Mon Sep 17 00:00:00 2001 From: rocky Date: Tue, 4 Feb 2020 21:28:08 -0500 Subject: [PATCH] Adjust assert transform for new "if_and" rule --- test/stdlib/2.5-exclude.sh | 6 +++++- uncompyle6/semantics/transform.py | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/test/stdlib/2.5-exclude.sh b/test/stdlib/2.5-exclude.sh index c332d373..007ce890 100644 --- a/test/stdlib/2.5-exclude.sh +++ b/test/stdlib/2.5-exclude.sh @@ -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 diff --git a/uncompyle6/semantics/transform.py b/uncompyle6/semantics/transform.py index 9326f78a..850149c6 100644 --- a/uncompyle6/semantics/transform.py +++ b/uncompyle6/semantics/transform.py @@ -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"