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.
1 parent 896f1dd commit 2aede99Copy full SHA for 2aede99
lib/matplotlib/tests/test_backend_bases.py
@@ -56,11 +56,11 @@ def test_get_default_filename(tmpdir):
56
57
58
@pytest.mark.backend('pdf')
59
-@pytest.mark.skipif('SYSTEM_TEAMFOUNDATIONCOLLECTIONURI' in os.environ,
60
- reason="this test fails an azure for unknown reasons")
61
-def test_non_gui_warning():
+def test_non_gui_warning(monkeypatch):
62
plt.subplots()
63
+ monkeypatch.setitem(os.environ, "DISPLAY", ":999")
+
64
with pytest.warns(UserWarning) as rec:
65
plt.show()
66
assert len(rec) == 1
0 commit comments