Note we can't handle try/else sometimes in 2.7

This commit is contained in:
rocky
2018-05-08 10:17:38 -04:00
parent f05b092983
commit b94f98f8f7
3 changed files with 12 additions and 0 deletions

Binary file not shown.

View 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")

View File

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