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

Skip to content

Commit ffc9f1d

Browse files
committed
Skip test_tmpconfigdir_warning when running as root.
This is something that happens when building wheels in the manylinux1 container.
1 parent 21c3acb commit ffc9f1d

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)