simoncozens / opentypespec-py

Data derived from the OpenType specification
Other
6 stars 1 forks source link

test failure #1

Open Alessandro-Barbieri opened 3 years ago

Alessandro-Barbieri commented 3 years ago

tests fails for me

>>> Test phase: dev-python/opentypespec-1.8.4                                                                         
 * pypy3: running distutils-r1_run_phase python_test                                                                                                                                                                                        
pypy3 setup.py test --verbose                                                                                                                                                                                                               
running test                                                                                                          
WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info                                
writing opentypespec.egg-info/PKG-INFO                                                                                
writing dependency_links to opentypespec.egg-info/dependency_links.txt
writing top-level names to opentypespec.egg-info/top_level.txt
reading manifest file 'opentypespec.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'opentypespec.egg-info/SOURCES.txt'                                                             
running build_ext                                                                                                     
Traceback (most recent call last):                                                                                    
  File "setup.py", line 47, in <module>                                                                               
    zip_safe=False,                                                                                                   
  File "/usr/lib/pypy3.7/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/pypy3.7/lib-python/3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/pypy3.7/lib-python/3/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)   
  File "/usr/lib/pypy3.7/lib-python/3/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/pypy3.7/site-packages/setuptools/command/test.py", line 232, in run
    self.run_tests()                                      
  File "/usr/lib/pypy3.7/site-packages/setuptools/command/test.py", line 254, in run_tests
    exit=False,                                                                                                       
  File "/usr/lib/pypy3.7/lib-python/3/unittest/main.py", line 100, in __init__                                                                                                                                                              
    self.parseArgs(argv)                                                                                                                                                                                                                    
  File "/usr/lib/pypy3.7/lib-python/3/unittest/main.py", line 147, in parseArgs                       
    self.createTests()                                                                                                
  File "/usr/lib/pypy3.7/lib-python/3/unittest/main.py", line 159, in createTests
    self.module)                                                                                                      
  File "/usr/lib/pypy3.7/lib-python/3/unittest/loader.py", line 220, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/pypy3.7/lib-python/3/unittest/loader.py", line 220, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/pypy3.7/lib-python/3/unittest/loader.py", line 191, in loadTestsFromName         
    return self.loadTestsFromModule(obj)                                                                              
  File "/usr/lib/pypy3.7/site-packages/setuptools/command/test.py", line 42, in loadTestsFromModule     
    for file in resource_listdir(module.__name__, ''):                                                                
  File "/usr/lib/pypy3.7/site-packages/pkg_resources/__init__.py", line 1148, in resource_listdir
    return get_provider(package_or_requirement).resource_listdir(                
  File "/usr/lib/pypy3.7/site-packages/pkg_resources/__init__.py", line 349, in get_provider
    return _find_adapter(_provider_factories, loader)(module)
  File "/usr/lib/pypy3.7/site-packages/pkg_resources/__init__.py", line 1379, in __init__
    self.module_path = os.path.dirname(getattr(module, '__file__', ''))
  File "/usr/lib/pypy3.7/lib-python/3/posixpath.py", line 156, in dirname
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
 * ERROR: dev-python/opentypespec-1.8.4::guru failed (test phase):
 *   Tests failed with pypy3
simoncozens commented 3 years ago

Thanks, can confirm that here. I test with pytest, not with setup.py test, so I hadn't noticed it, but obviously it should work. I think I've done something weird with the setup.py parameters... now to work out what...

Alessandro-Barbieri commented 3 years ago

I used setup.py because I found it here https://github.com/simoncozens/opentypespec-py/blob/abd9e518b112b139939dd6b7177ca95815c95923/Makefile#L55

simoncozens commented 3 years ago

Oops - I probably shouldn't distribute that Makefile; I just use it to help build docs/ upload releases /etc.