-
Notifications
You must be signed in to change notification settings - Fork 395
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
sub module named setup causes unexpected error in Nose #24
Comments
last change ate my attachment. Here is the test suite again. Google Code Info: |
After discussion on mailing list, this should be a feature / enhancement. Allow anything named setup (or teardown) to be ignored with test=False Google Code Info: |
Issue 320 has been merged into this issue. Google Code Info: |
The workaround is to monkey-patch ContextSuitee: ContextSuite.moduleSetup = ('setup_module', 'setupModule', 'setUpModule', 'setupHolder', 'setUp') See: Google Code Info: |
I wanted to ping to see if people have come up with improved workarounds for this issue. |
I'm new to nose and I'm struggling to apply the workaround described above. I've also tried fiddling with various command-line options in hopes of excluding the troublesome module, but with no luck. I'll have a hard time persuading my new colleagues of the virtue of continuously running the tests if they get spurious errors, so I'd appreciate any tips. |
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Nose somehow thinks that the setup module is a package level fixture and
setting setup.test = False does not prevent this.
Attached is a simple test suite that reproduces the problem.
Please use labels and text to provide additional information.
Google Code Info:
Issue #: 326
Author: kumar.mcmillan
Created On: 2010-03-12T19:55:33.000Z
Closed On:
The text was updated successfully, but these errors were encountered: