Commit 541b924
committed
TST: Fix image comparison directory for test_striped_lines
The image comparison directory is determined by `inspect.getfile(func)`,
but when a test is wrapped in `rc_context`, the file returned is
`contextlib` since that decorator is `contextlib.contextmanager`. Since
this test uses `check_figures_equal`, that doesn't break it, but it does
break the `triage_tests.py` tool as it cannot find a corresponding
baseline image directory.
In this case, the context doesn't set anything that would affect
figures, so inline the effect of the context as keyword arguments.1 parent 1e8ea2f commit 541b924
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1311 | 1311 | | |
1312 | 1312 | | |
1313 | 1313 | | |
1314 | | - | |
1315 | 1314 | | |
1316 | 1315 | | |
1317 | 1316 | | |
| |||
1323 | 1322 | | |
1324 | 1323 | | |
1325 | 1324 | | |
1326 | | - | |
| 1325 | + | |
| 1326 | + | |
1327 | 1327 | | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
1333 | | - | |
| 1333 | + | |
0 commit comments