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

nosetests explodes on setup function #13

Closed
thezerobit opened this issue Feb 8, 2013 · 0 comments
Closed

nosetests explodes on setup function #13

thezerobit opened this issue Feb 8, 2013 · 0 comments

Comments

@thezerobit
Copy link

I think nose runs the setup function in sphinxext.py erroneously (mistaking it as a test setup function), causing it to explode before any actual tests are run:

$ nosetests cartouche.test
E
======================================================================
ERROR: test suite for <module 'cartouche.test' from '/home/sgoss/projects/cartouche/cartouche/test/__init__.pyc'>
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sgoss/projects/cartouche_env/local/lib/python2.7/site-packages/nose/suite.py", line 208, in run
    self.setUp()
  File "/home/sgoss/projects/cartouche_env/local/lib/python2.7/site-packages/nose/suite.py", line 291, in setUp
    self.setupContext(ancestor)
  File "/home/sgoss/projects/cartouche_env/local/lib/python2.7/site-packages/nose/suite.py", line 314, in setupContext
    try_run(context, names)
  File "/home/sgoss/projects/cartouche_env/local/lib/python2.7/site-packages/nose/util.py", line 476, in try_run
    return func(obj)
  File "/home/sgoss/projects/cartouche/cartouche/sphinxext.py", line 6, in setup
    app.add_config_value('cartouche_accept_bulleted_args', False, 'env')
AttributeError: 'module' object has no attribute 'add_config_value'

----------------------------------------------------------------------
Ran 0 tests in 0.000s

FAILED (errors=1)
rob-smallshire added a commit that referenced this issue Feb 9, 2013
Fix for issue #13: bail out of setup function if called by nose
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

2 participants