Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3bf9076 + f1bc933 commit 84f02feCopy full SHA for 84f02fe
1 file changed
lib/matplotlib/tests/test_backend_bases.py
@@ -58,11 +58,11 @@ def test_get_default_filename(tmpdir):
58
59
60
@pytest.mark.backend('pdf')
61
-@pytest.mark.skipif('SYSTEM_TEAMFOUNDATIONCOLLECTIONURI' in os.environ,
62
- reason="this test fails an azure for unknown reasons")
63
-def test_non_gui_warning():
+def test_non_gui_warning(monkeypatch):
64
plt.subplots()
65
+ monkeypatch.setitem(os.environ, "DISPLAY", ":999")
+
66
with pytest.warns(UserWarning) as rec:
67
plt.show()
68
assert len(rec) == 1
0 commit comments