File: timeout.py

package info (click to toggle)
nose 1.3.7-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,900 kB
  • sloc: python: 15,733; makefile: 99; xml: 42; sh: 2
file content (12 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
#make sure all tests in this file are dispatched to the same subprocess
def setup():
    pass

def test_timeout():
    "this test *should* fail when process-timeout=1"
    from time import sleep
    sleep(2)

# check timeout will not prevent remaining tests dispatched to the same subprocess to continue to run
def test_pass():
    pass