File: _debugger_case_zip_files.py

package info (click to toggle)
pydevd 3.4.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,892 kB
  • sloc: python: 77,580; cpp: 1,873; sh: 374; makefile: 50; 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!')