You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
12 lines
358 B
Python
12 lines
358 B
Python
# 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")
|