Author serhiy.storchaka
Recipients brett.cannon, serhiy.storchaka, twouters
Date 2018-06-03.14:12:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./python -m test -v -m test_resource test_importlib
...
======================================================================                                                                                                                                                                       
ERROR: test_is_submodule_resource (test.test_importlib.test_resource.ResourceFromZipsTest)                                                                                                                                                   
----------------------------------------------------------------------                                                                                                                                                                       
Traceback (most recent call last):                                                                                                                                                                                                           
  File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 113, in test_is_submodule_resource                                                                                                                           
    submodule = import_module('ziptestdata.subdirectory')                                                                                                                                                                                    
  File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module                                                                                                                                                       
    return _bootstrap._gcd_import(name[level:], package, level)                                                                                                                                                                              
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import                                                                                                                                                                            
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load                                                                                                                                                                          
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked                                                                                                                                                                 
ModuleNotFoundError: No module named 'ziptestdata.subdirectory'                                                                                                                                                                              
                                                                                                                                                                                                                                             
======================================================================                                                                                                                                                                       
ERROR: test_read_submodule_resource_by_name (test.test_importlib.test_resource.ResourceFromZipsTest)                                                                                                                                         
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 119, in test_read_submodule_resource_by_name
    resources.is_resource('ziptestdata.subdirectory', 'binary.file'))
  File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 223, in is_resource
    package = _get_package(package)
  File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 47, in _get_package
    module = import_module(package)
  File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'ziptestdata.subdirectory'

======================================================================
ERROR: test_submodule_contents (test.test_importlib.test_resource.ResourceFromZipsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 122, in test_submodule_contents
    submodule = import_module('ziptestdata.subdirectory')
  File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'ziptestdata.subdirectory'

======================================================================
ERROR: test_submodule_contents_by_name (test.test_importlib.test_resource.ResourceFromZipsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_importlib/test_resource.py", line 129, in test_submodule_contents_by_name
    set(resources.contents('ziptestdata.subdirectory')),
  File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 248, in contents
    package = _get_package(package)
  File "/home/serhiy/py/cpython/Lib/importlib/resources.py", line 47, in _get_package
    module = import_module(package)
  File "/home/serhiy/py/cpython/Lib/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'ziptestdata.subdirectory'

----------------------------------------------------------------------
History
Date User Action Args
2018-06-03 14:12:34serhiy.storchakasetrecipients: + serhiy.storchaka, twouters, brett.cannon
2018-06-03 14:12:34serhiy.storchakasetmessageid: <1528035154.67.0.592728768989.issue33755@psf.upfronthosting.co.za>
2018-06-03 14:12:34serhiy.storchakalinkissue33755 messages
2018-06-03 14:12:34serhiy.storchakacreate