Created
February 28, 2013 04:21
-
-
Save simon-weber/5054149 to your computer and use it in GitHub Desktop.
Reproduce a bug in proboscis.after_class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from proboscis import test, after_class, TestProgram | |
@test | |
class Test(object): | |
@after_class | |
def will_skip_but_should_not(self): | |
pass | |
@test | |
def failing_test(self): | |
raise AssertionError | |
if __name__ == '__main__': | |
TestProgram().run_and_exit() | |
#prints: | |
# | |
# proboscis.case.MethodTest (failing_test) ... FAIL | |
# proboscis.case.MethodTest (will_skip_but_should_not) ... skipped 'Failure in <function failing_test at 0x25335f0>' | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment