You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:14:10 +08:00
Another 3.x bug involving jumps
This commit is contained in:
19
test/simple_source/exception/10_try_continue_bug.py
Normal file
19
test/simple_source/exception/10_try_continue_bug.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Python 3.4 bug found from tempfile.py
|
||||
def _get_default_tempdir(dirlist, fd):
|
||||
for dir in dirlist:
|
||||
for seq in range(100):
|
||||
try:
|
||||
try:
|
||||
try:
|
||||
with open(fd, 'wb', closefd=False) as fp:
|
||||
fp.write(b'blat')
|
||||
finally:
|
||||
seq += 1
|
||||
finally:
|
||||
seq += 10
|
||||
return dir
|
||||
except RuntimeError:
|
||||
pass
|
||||
except OSError:
|
||||
break # no point trying more names in this directory
|
||||
raise RuntimeError
|
Reference in New Issue
Block a user