Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/matplotlib/tests/test_backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def test_get_default_filename(tmpdir):


@pytest.mark.backend('pdf')
@pytest.mark.skipif('SYSTEM_TEAMFOUNDATIONCOLLECTIONURI' in os.environ,
reason="this test fails an azure for unknown reasons")
def test_non_gui_warning():
def test_non_gui_warning(monkeypatch):
plt.subplots()

monkeypatch.setitem(os.environ, "DISPLAY", ":999")

with pytest.warns(UserWarning) as rec:
plt.show()
assert len(rec) == 1
Expand Down