New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: ERROR in tearDownClass crashes test runner #1370

Closed
marmarek opened this Issue Nov 2, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@marmarek
Member

marmarek commented Nov 2, 2015

Traceback (most recent call last):
  File "/usr/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib64/python2.7/site-packages/qubes/tests/run.py", line 362, in <module>
    sys.exit(not main())
  File "/usr/lib64/python2.7/site-packages/qubes/tests/run.py", line 358, in main
    return runner.run(suite).wasSuccessful()
  File "/usr/lib64/python2.7/unittest/runner.py", line 151, in run
    test(result)
  File "/usr/lib64/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib64/python2.7/unittest/suite.py", line 98, in run
    self._tearDownPreviousClass(test, result)
  File "/usr/lib64/python2.7/unittest/suite.py", line 247, in _tearDownPreviousClass
    self._addClassOrModuleLevelException(result, e, errorName)
  File "/usr/lib64/python2.7/unittest/suite.py", line 198, in _addClassOrModuleLevelException
    result.addError(error, sys.exc_info())
  File "/usr/lib64/python2.7/site-packages/qubes/tests/run.py", line 137, in addError
    test.log.critical('ERROR ({err[0].__name__}: {err[1]!r})'.format(err=err))
AttributeError: '_ErrorHolder' object has no attribute 'log'

@marmarek marmarek added this to the Release 3.1 milestone Nov 2, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment