File: _debugger_case_zip_files.py

package info (click to toggle)
pydevd 2.9.5%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,880 kB
  • sloc: python: 75,138; cpp: 1,851; sh: 310; makefile: 40; ansic: 4
file content (17 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from zipped import zipped_contents
try:
    code = zipped_contents.call_in_zip.__code__
except AttributeError:
    code = zipped_contents.call_in_zip.func_code
assert 'myzip.zip' in code.co_filename
zipped_contents.call_in_zip()

from zipped2 import zipped_contents2
try:
    code = zipped_contents2.call_in_zip2.__code__
except AttributeError:
    code = zipped_contents2.call_in_zip2.func_code
assert 'myzip2.egg!' in code.co_filename
zipped_contents2.call_in_zip2()

print('TEST SUCEEDED!')