Still fails with 3.1 alpha2:
======================================================================
ERROR: test_is_package
(importlib.test.frozen.test_loader.InspectLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/frozen/test_loader.py", line 80, in
test_is_package
result = machinery.FrozenImporter.is_package(name)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/_bootstrap.py", line 191, in wrapper
return fxn(self, fullname)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/_bootstrap.py", line 301, in is_package
return imp.is_frozen_package(fullname)
AttributeError: 'module' object has no attribute 'is_frozen_package'
======================================================================
ERROR: test_lacking_parent
(importlib.test.source.test_abc_loader.PyLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 162, in
test_lacking_parent
__loader__=mock)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format
======================================================================
ERROR: test_module (importlib.test.source.test_abc_loader.PyLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 138, in
test_module
__loader__=mock)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format
======================================================================
ERROR: test_package
(importlib.test.source.test_abc_loader.PyLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 151, in
test_package
__loader__=mock)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format
======================================================================
ERROR: test_lacking_parent
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 270, in
test_lacking_parent
mock, name = super().test_lacking_parent()
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 162, in
test_lacking_parent
__loader__=mock)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format
======================================================================
ERROR: test_module
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 262, in
test_module
mock, name = super().test_module()
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 138, in
test_module
__loader__=mock)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format
======================================================================
ERROR: test_package
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 266, in
test_package
mock, name = super().test_package()
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 151, in
test_package
__loader__=mock)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 128, in
eq_attrs
"{} attribute: {} != {}".format(attr, found, val))
ValueError: zero length field name in format
======================================================================
FAIL: test_case_insensitivity
(importlib.test.extension.test_case_sensitivity.ExtensionModuleCaseSensi
tivityTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/extension/test_case_sensitivity.py", line 29,
in test_case_insensitivity
self.assert_(hasattr(loader, 'load_module'))
AssertionError: False is not True
======================================================================
FAIL: test_module_reuse
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 275, in
test_module_reuse
self.verify_bytecode(mock, name)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/util.py", line 18, in wrapper
to_return = fxn(*args, **kwargs)
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_abc_loader.py", line 253, in
verify_bytecode
self.assert_(name in mock.module_bytecode)
AssertionError: False is not True
======================================================================
FAIL: test_insensitive
(importlib.test.source.test_case_sensitivity.CaseSensitivityTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Downloads/Python-
3.1a2/Lib/importlib/test/source/test_case_sensitivity.py", line 49, in
test_insensitive
self.assert_(hasattr(insensitive, 'load_module'))
AssertionError: False is not True
|
Tested with: ./python -m test.regrtest -v test_importlib
3 failures:
======================================================================
FAIL: test_case_insensitivity
(importlib.test.extension.test_case_sensitivity.ExtensionModuleCaseSensi
tivityTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/extension/test_case_sensitivity.py", line 29,
in test_case_insensitivity
self.assert_(hasattr(loader, 'load_module'))
AssertionError: False is not True
======================================================================
FAIL: test_lacking_parent
(importlib.test.source.test_abc_loader.PyPycLoaderTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/source/test_abc_loader.py", line 271, in
test_lacking_parent
self.verify_bytecode(mock, name)
File "/Users/cartman/Python-3.1b1/Lib/importlib/test/source/util.py",
line 18, in wrapper
to_return = fxn(*args, **kwargs)
File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/source/test_abc_loader.py", line 253, in
verify_bytecode
self.assert_(name in mock.module_bytecode)
AssertionError: False is not True
======================================================================
FAIL: test_insensitive
(importlib.test.source.test_case_sensitivity.CaseSensitivityTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/cartman/Python-
3.1b1/Lib/importlib/test/source/test_case_sensitivity.py", line 49, in
test_insensitive
self.assert_(hasattr(insensitive, 'load_module'))
AssertionError: False is not True
----------------------------------------------------------------------
Ran 166 tests in 0.133s
FAILED (failures=3)
|
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
|