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
Special reporting of NotImplementedError in unittest #45807
Comments
When a unittest test case raises an Exception, that test case is I therefore think test cases raising NotImplementedError should not be I have made a patch to unittest that reports such cases as "not Patch against 59056 attached |
No. If you're testing something that's not implemented, it is correct to |
I don't think unittest automatically treats all exceptions as failures. |
Raghuram Devarakonda skrev:
You are right, I used the wrong word. I mean that NotImplementedError If you have ever written the test cases before you write the code, you Erik |
Sorry, just comment out those tests until you're ready to write the code. |
Possible, but cumbersome. You have to analyze each case and see if it Erik |
Have you tried to write a Test Runner that ignores |
Sorry Erik, but I don't think you should try to compensate for your |
No, I definitely don't want to ignore them, I want them reported in a In addition to a TestRunner I need a new TestCase and a new TestResult, Erik |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: