Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b3ac93

Browse files
authored
Merge pull request #19821 from anntzer/se
Hide stderr output from subprocess call in test suite.
2 parents 4e9798f + 6fd1ea3 commit 7b3ac93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_rcparams.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ def test_backend_fallback_headless(tmpdir):
481481
with pytest.raises(subprocess.CalledProcessError):
482482
subprocess.run(
483483
[sys.executable, "-c",
484-
("import matplotlib;" +
485-
"matplotlib.use('tkagg');" +
486-
"import matplotlib.pyplot")
484+
"import matplotlib;"
485+
"matplotlib.use('tkagg');"
486+
"import matplotlib.pyplot"
487487
],
488-
env=env, check=True)
488+
env=env, check=True, stderr=subprocess.DEVNULL)
489489

490490

491491
@pytest.mark.skipif(

0 commit comments

Comments
 (0)