{{ message }}
Commit 7dc73af
committed
Prepare for cross-framework test suite
- introduced `xfail(reason)` function
- uses: `raise KnownFailureTest(msg)` -> `xfail(reason)`
- same name and signature as in pytest
- introduced `skip(reason)` function
- uses: `raise SkipTest(msg)` -> `skip(reason)`
- same name and signature as in pytest
- introduced `skipif(condition, reason=None)` decorator
- uses: replaces `def func(): if condition: skip()`
- same name and signature as in pytest
- can be used with functions, classes, and methods
- supports string condition (evaluated at runtime)
- moved nose related code to `testing.nose` submodule
- plugins in `testing.nose.plugins` submodule
- decorators implementation in `testing.nose.decorators`
(interface is still in `testing.decorators`, implementation will
have been chosen at runtime according to used test framework)
- `matplotlib.test` function unifications
- `tests.py` now uses `matplotlib.test()`1 parent 4e21b9a commit 7dc73af
17 files changed
Lines changed: 290 additions & 168 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
16 | 60 | | |
17 | 61 | | |
18 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
24 | 20 | | |
25 | 21 | | |
26 | 22 | | |
27 | | - | |
28 | | - | |
29 | 23 | | |
30 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | | - | |
| 39 | + | |
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
| |||
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 51 | + | |
| 52 | + | |
71 | 53 | | |
72 | 54 | | |
73 | 55 | | |
| |||
211 | 193 | | |
212 | 194 | | |
213 | 195 | | |
214 | | - | |
| 196 | + | |
215 | 197 | | |
216 | 198 | | |
217 | 199 | | |
| |||
263 | 245 | | |
264 | 246 | | |
265 | 247 | | |
266 | | - | |
| 248 | + | |
267 | 249 | | |
268 | 250 | | |
269 | 251 | | |
270 | 252 | | |
271 | 253 | | |
272 | 254 | | |
| 255 | + | |
273 | 256 | | |
274 | 257 | | |
275 | 258 | | |
| |||
428 | 411 | | |
429 | 412 | | |
430 | 413 | | |
431 | | - | |
| 414 | + | |
432 | 415 | | |
433 | 416 | | |
434 | 417 | | |
| |||
447 | 430 | | |
448 | 431 | | |
449 | 432 | | |
450 | | - | |
451 | | - | |
| 433 | + | |
452 | 434 | | |
453 | 435 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | 1 | | |
14 | 2 | | |
15 | 3 | | |
| |||

0 commit comments