You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Note we can't handle try/else sometimes in 2.7
This commit is contained in:
BIN
test/bytecode_2.7/05_try_else.pyc-notyet
Normal file
BIN
test/bytecode_2.7/05_try_else.pyc-notyet
Normal file
Binary file not shown.
11
test/simple_source/bug27+/05_try_else.py
Normal file
11
test/simple_source/bug27+/05_try_else.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# From Python 2.7 test_ziplib.py
|
||||
# Bug is distinguishing try from try/else.
|
||||
def testAFakeZlib(self):
|
||||
try:
|
||||
self.doTest()
|
||||
except ImportError:
|
||||
if self.compression != 3:
|
||||
self.fail("expected test to not raise ImportError")
|
||||
else:
|
||||
if self.compression != 4:
|
||||
self.fail("expected test to raise ImportError")
|
@@ -111,6 +111,7 @@ case $PYVERSION in
|
||||
[test_unicode.py]=1 # Too long to run 11 seconds
|
||||
[test_xpickle.py]=1 # Runs ok but takes 72 seconds
|
||||
[test_zipfile64.py]=1 # Runs ok but takes 204 seconds
|
||||
[test_zipimport]=1 # We can't distinguish try from try/else yet
|
||||
)
|
||||
if (( batch )) ; then
|
||||
# Fails in crontab environment?
|
||||
|
Reference in New Issue
Block a user