8000 TST: Fix condition for test_tmpconfigdir_warning · matplotlib/matplotlib@e804200 · GitHub
[go: up one dir, main page]

Skip to content

Commit e804200

Browse files
committed
TST: Fix condition for test_tmpconfigdir_warning
This checks `os.geteuid`, but this is only available on Unix, not Emscripten or WASM.
1 parent 3f2cc0b commit e804200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_matplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def test_parse_to_version_info(version_str, version_tuple):
1818
assert matplotlib._parse_to_version_info(version_str) == version_tuple
1919

2020

21-
@pytest.mark.skipif(sys.platform == "win32",
21+
@pytest.mark.skipif(sys.platform not in ["linux", "darwin"],
2222
reason="chmod() doesn't work as is on Windows")
23-
@pytest.mark.skipif(sys.platform != "win32" and os.geteuid() == 0,
23+
@pytest.mark.skipif(sys.platform in ["linux", "darwin"] and os.geteuid() == 0,
2424
reason="chmod() doesn't work as root")
2525
def test_tmpconfigdir_warning(tmp_path):
2626
"""Test that a warning is emitted if a temporary configdir must be used."""

0 commit comments

Comments
 (0)
0