Show More
@@ -46,13 +46,16 def setastest(tf=True): | |||
|
46 | 46 | return t |
|
47 | 47 | return set_test |
|
48 | 48 | |
|
49 | def skipif(skip_condition, msg=None): | |
|
49 | def skipif(skip_condition=True, msg=None): | |
|
50 | 50 | ''' Make function raise SkipTest exception if skip_condition is true |
|
51 | 51 | |
|
52 | 52 | Parameters |
|
53 | 53 | --------- |
|
54 | skip_condition : bool | |
|
55 |
|
|
|
54 | skip_condition : bool or callable. | |
|
55 | Flag to determine whether to skip test. If the condition is a | |
|
56 | callable, it is used at runtime to dynamically make the decision. This | |
|
57 | is useful for tests that may require costly imports, to delay the cost | |
|
58 | until the test suite is actually executed. | |
|
56 | 59 | msg : string |
|
57 | 60 | Message to give on raising a SkipTest exception |
|
58 | 61 |
General Comments 0
You need to be logged in to leave comments.
Login now