[issue5442] test_importlib fails on Mac OSX 10.5.6 w/ case-sensitive file system

Ismail Donmez report at bugs.python.org
Sun May 10 08:59:41 CEST 2009


Ismail Donmez <ismail at namtrac.org> added the comment:

1 Fail:

test test_importlib crashed -- <class 'AttributeError'>: 'module' object 
has no attribute 'writes_bytecode'
Traceback (most recent call last):
  File "/Users/cartman/Python-3.1b1/Lib/test/regrtest.py", line 620, in 
runtest_inner
    indirect_test()
  File "/Users/cartman/Python-3.1b1/Lib/test/test_importlib.py", line 6, 
in test_main
    run_unittest(importlib.test.test_suite('importlib.test'))
  File "/Users/cartman/Python-3.1b1/Lib/importlib/test/__init__.py", 
line 22, in test_suite
    package_tests = getattr(sys.modules[package_name], 'test_suite')()
  File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/source/__init__.py", line 8, in test_suite
    return importlib.test.test_suite('importlib.test.source', directory)
  File "/Users/cartman/Python-3.1b1/Lib/importlib/test/__init__.py", 
line 16, in test_suite
    __import__(module_name, level=0)
  File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/source/test_file_loader.py", line 111, in 
<module>
    class BadBytecodeTest(unittest.TestCase):
  File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/source/test_file_loader.py", line 130, in 
BadBytecodeTest
    @source_util.writes_bytecode
AttributeError: 'module' object has no attribute 'writes_bytecode'
1 test failed:
    test_importlib

----------
status: pending -> open

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


More information about the Python-bugs-list mailing list