Skip to content

Commit 7572bf2

Browse files
committed
add conftest to avoid latex comaprisons
1 parent 9403428 commit 7572bf2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import pytest
2+
3+
4+
@pytest.hookimpl(tryfirst=True)
5+
def pytest_collectstart(collector):
6+
if hasattr(collector, "fspath") and \
7+
str(collector.fspath).endswith(".ipynb"):
8+
collector.skip_compare += ('text/latex', 'stderr')

0 commit comments

Comments
 (0)