File: test_skip.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 (13 lines) | stat: -rw-r--r-- 190 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
from nose.exc import SkipTest

def test_ok():
    pass

def test_err():
    raise Exception("oh no")

def test_fail():
    assert False, "bye"

def test_skip():
    raise SkipTest("not me")