[issue21770] Module not callable in script_helper.py

Claudiu Popa report at bugs.python.org
Sun Jun 15 11:18:06 CEST 2014


New submission from Claudiu Popa:

Using make_zip_pkg from script_helper with compiled=True will lead to the following failure:

Traceback (most recent call last):
  File "D:\Projects\cpython\lib\test\test_cmd_line_script.py", line 305, in test_module_in_subpackage_in_zipfile
    zip_name, run_name = _make_test_zip_pkg(script_dir, 'test_zip', 'test_pkg', 'script', depth=2)
  File "D:\Projects\cpython\lib\test\test_cmd_line_script.py", line 86, in _make_test_zip_pkg
    source, depth, compiled=True)
  File "D:\Projects\cpython\lib\test\script_helper.py", line 158, in make_zip_pkg
    init_name = py_compile(init_name, doraise=True)
TypeError: 'module' object is not callable

The attached patch fixes this.

----------
components: Tests
files: script_helper_fix.patch
keywords: patch
messages: 220622
nosy: Claudiu.Popa
priority: normal
severity: normal
status: open
title: Module not callable in script_helper.py
versions: Python 3.5
Added file: http://bugs.python.org/file35644/script_helper_fix.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21770>
_______________________________________


More information about the Python-bugs-list mailing list