Show More
@@ -16,10 +16,6 b' Included decorators:' | |||||
16 |
|
16 | |||
17 | Lightweight testing that remains unittest-compatible. |
|
17 | Lightweight testing that remains unittest-compatible. | |
18 |
|
18 | |||
19 | - @parametric, for parametric test support that is vastly easier to use than |
|
|||
20 | nose's for debugging. With ours, if a test fails, the stack under inspection |
|
|||
21 | is that of the test and not that of the test framework. |
|
|||
22 |
|
||||
23 | - An @as_unittest decorator can be used to tag any normal parameter-less |
|
19 | - An @as_unittest decorator can be used to tag any normal parameter-less | |
24 | function as a unittest TestCase. Then, both nose and normal unittest will |
|
20 | function as a unittest TestCase. Then, both nose and normal unittest will | |
25 | recognize it as such. This will make it easier to migrate away from Nose if |
|
21 | recognize it as such. This will make it easier to migrate away from Nose if | |
@@ -58,12 +54,6 b' import unittest' | |||||
58 | # This is Michele Simionato's decorator module, kept verbatim. |
|
54 | # This is Michele Simionato's decorator module, kept verbatim. | |
59 | from IPython.external.decorator import decorator |
|
55 | from IPython.external.decorator import decorator | |
60 |
|
56 | |||
61 | # We already have python3-compliant code for parametric tests |
|
|||
62 | if sys.version[0]=='2': |
|
|||
63 | from _paramtestpy2 import parametric |
|
|||
64 | else: |
|
|||
65 | from _paramtestpy3 import parametric |
|
|||
66 |
|
||||
67 | # Expose the unittest-driven decorators |
|
57 | # Expose the unittest-driven decorators | |
68 | from ipunittest import ipdoctest, ipdocstring |
|
58 | from ipunittest import ipdoctest, ipdocstring | |
69 |
|
59 |
@@ -41,12 +41,6 b' import sys' | |||||
41 | import unittest |
|
41 | import unittest | |
42 | from doctest import DocTestFinder, DocTestRunner, TestResults |
|
42 | from doctest import DocTestFinder, DocTestRunner, TestResults | |
43 |
|
43 | |||
44 | # We already have python3-compliant code for parametric tests |
|
|||
45 | if sys.version[0]=='2': |
|
|||
46 | from ._paramtestpy2 import ParametricTestCase |
|
|||
47 | else: |
|
|||
48 | from ._paramtestpy3 import ParametricTestCase |
|
|||
49 |
|
||||
50 | #----------------------------------------------------------------------------- |
|
44 | #----------------------------------------------------------------------------- | |
51 | # Classes and functions |
|
45 | # Classes and functions | |
52 | #----------------------------------------------------------------------------- |
|
46 | #----------------------------------------------------------------------------- |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now