1. Michał Górny
  2. gentoopm
Issue #2 resolved

Tests fail with python3.3

Michał Górny
repo owner created an issue
Traceback (most recent call last):
  File "setup.py", line 109, in <module>
    'test': TestCommand
  File "/usr/lib64/python3.3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.3/distutils/dist.py", line 917, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.3/distutils/dist.py", line 936, in run_command
    cmd_obj.run()
  File "setup.py", line 66, in run
    testsuite.addTests(l.loadTestsFromModule('gentoopm.tests.atom'))
  File "./gentoopm/tests/__init__.py", line 63, in loadTestsFromModule
    mod = __import__(mod, fromlist=['.'], level=-1)
ValueError: level must be >= 0

Comments (2)

  1. Michał Górny reporter

    338e65d fixes the issue but triggers a new one:

    Traceback (most recent call last):
      File "setup.py", line 109, in <module>
        'test': TestCommand
      File "/usr/lib64/python3.3/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib64/python3.3/distutils/dist.py", line 917, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python3.3/distutils/dist.py", line 936, in run_command
        cmd_obj.run()
      File "setup.py", line 66, in run
        testsuite.addTests(l.loadTestsFromModule('gentoopm.tests.atom'))
      File "./gentoopm/tests/__init__.py", line 63, in loadTestsFromModule
        mod = __import__(mod, fromlist=['.'], level=2)
    KeyError: "'__name__' not in globals"
    
  2. Log in to comment