8000 Merge pull request #17619 from QuLogic/fix-wheel-builds · matplotlib/matplotlib@15c0d7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 15c0d7c

Browse files
authored
Merge pull request #17619 from QuLogic/fix-wheel-builds
Skip test_tmpconfigdir_warning when running as root.
2 parents e48b6b9 + ffc9f1d commit 15c0d7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/tests/test_matplotlib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
@pytest.mark.skipif(
1111
os.name == "nt", reason="chmod() doesn't work as is on Windows")
12+
@pytest.mark.skipif(os.name != "nt" and os.geteuid() == 0,
13+
reason="chmod() doesn't work as root")
1214
def test_tmpconfigdir_warning(tmpdir):
1315
"""Test that a warning is emitted if a temporary configdir must be used."""
1416
mode = os.stat(tmpdir).st_mode

0 commit comments

Comments
 (0)
0