Commit 5ccea85
committed
Simplify mpl.testing._copy_metadata.
`mpl.testing._copy_metadata` was basically doing the job
of `functools.update_wrapper`. We don't need to specify
`compat_co_firstlineono` either as pytest will look up the
lineno in the wrapped function (`_pytest.compat.get_real_func`,
`_pytest.compat.getfslineno`). It's also for this reason that we need
to make sure `__wrapped__` is properly set, even on Py2.1 parent 89183ba commit 5ccea85
1 file changed
Lines changed: 3 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 24 | | |
42 | 25 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 26 | + | |
| 27 | + | |
51 | 28 | | |
52 | 29 | | |
53 | 30 | | |
| |||
0 commit comments