Skip to content

Instantly share code, notes, and snippets.

@kevinjqiu
Created May 3, 2013 17:00
Show Gist options
  • Save kevinjqiu/5511276 to your computer and use it in GitHub Desktop.
Save kevinjqiu/5511276 to your computer and use it in GitHub Desktop.
import time
def test0():
assert False
def test1():
time.sleep(1)
assert True
def test2():
time.sleep(1)
assert True
@kevinjqiu
Copy link
Author

^C at the first failure:

 $ nosetests -v
test.test0 ... FAIL
test.test1 ... ^C
======================================================================
FAIL: test.test0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/kevin/src/nose/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/kevin/src/tmp/test.py", line 7, in test0
    assert False
AssertionError

----------------------------------------------------------------------
Ran 2 tests in 0.921s

FAILED (failures=1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment