Skip to content

Commit e5eb40a

Browse files
committed
Tests: possible xfail in seaborn example due to Matplotlib bug.
Seaborn report: mwaskom/seaborn#2343 Matplotlib bug: matplotlib/matplotlib#18407
1 parent 20d136d commit e5eb40a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_external.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ def test_seaborn():
2525
pytest.skip("seaborn not available for testing")
2626

2727
res = build_figure(srcdir, "seaborn_figure.py")
28+
if res.returncode != 0:
29+
# Due to an upstream Matplotlib bug.
30+
if "'NoneType' object has no attribute 'write'" in res.stderr:
31+
pytest.xfail("https://github.com/mwaskom/seaborn/issues/2343")
2832
assert res.returncode == 0, "tests/sources/external/seaborn_figure.py could not be built."
2933
clean_dir(srcdir)
3034

0 commit comments

Comments
 (0)