Skip to content
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

An exception in setUpClass() should not terminate autonose #28

Open
lieryan opened this issue Mar 5, 2014 · 0 comments
Open

An exception in setUpClass() should not terminate autonose #28

lieryan opened this issue Mar 5, 2014 · 0 comments

Comments

@lieryan
Copy link

lieryan commented Mar 5, 2014

Autonose terminates with the following traceback when setUpClass() raises an error:

Traceback (most recent call last):
  File "/home/lieryan/.cache/0install.net/implementations/sha256=69730523263f37581d813bf443f6ca9d528055968d95124d1558baebd0a4f5ec/paragram/process/base_process.py", line 209, in _run
    self._target(self, *self._args, **self._kwargs)
  File "/home/lieryan/Projects/autonose/autonose/runner.py", line 194, in run_tests
    nose.run(argv=args, addplugins=[watcher_plugin])
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/core.py", line 291, in run
    return TestProgram(*arg, **kw).success
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/core.py", line 118, in __init__
    **extra_args)
  File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/core.py", line 197, in runTests
    result = self.testRunner.run(self.test)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/core.py", line 61, in run
    test(result)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/suite.py", line 223, in run
    test(orig)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/suite.py", line 223, in run
    test(orig)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/suite.py", line 176, in __call__
    return self.run(*arg, **kw)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/suite.py", line 213, in run
    result.addError(self, self._exc_info())
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/proxy.py", line 124, in addError
    plugin_handled = plugins.handleError(self.test, err)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/plugins/manager.py", line 99, in __call__
    return self.call(*arg, **kw)
  File "/home/lieryan/.cache/0install.net/implementations/sha256new_QI4EUIDXPFPFZMN4IGFFA3W5CN6WQ3G3C4V7VGBN3MGQD5BKJJUQ/lib/nose/plugins/manager.py", line 167, in simple
    result = meth(*arg, **kw)
  File "/home/lieryan/Projects/autonose/autonose/watcher.py", line 136, in handleError
    err = test.plugins.formatError(test, err) or err
AttributeError: 'ContextSuite' object has no attribute 'plugins'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant