Skip to content

Commit 57152cf

Browse files
committed
Move suppress_path_mangle to test_ccompiler to limit the scope.
1 parent b16c1de commit 57152cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def monkeysession(request):
9292
mpatch.undo()
9393

9494

95-
@pytest.fixture(autouse=True, scope="session")
95+
@pytest.fixture(scope="module")
9696
def suppress_path_mangle(monkeysession):
9797
"""
9898
Disable the path mangling in CCompiler. Workaround for #169.

distutils/tests/test_ccompiler.py

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

88
import pytest
99

10+
pytestmark = pytest.mark.usefixtures('suppress_path_mangle')
11+
1012

1113
def _make_strs(paths):
1214
"""

0 commit comments

Comments
 (0)