Skip to content

Instantly share code, notes, and snippets.

@simon-weber
Created February 28, 2013 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simon-weber/5054149 to your computer and use it in GitHub Desktop.
Save simon-weber/5054149 to your computer and use it in GitHub Desktop.
Reproduce a bug in proboscis.after_class.
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