Commit b650c67
committed
Don't assume cwd in test_ipynb.
The Matplotlib test suite can be run from outside of the root git
directory, e.g. with
pytest --pyargs matplotlib.tests.test_backend_nbagg
(mplcairo explicitly relies on that to reuse the Matplotlib test suite).
To ensure this, find the example notebook relative to the path of the
test module, rather than relative to the current working directory.1 parent 4b1f956 commit b650c67
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
0 commit comments