Skip to content

Commit c977026

Browse files
committed
test_install: fix an issue specific to mingw
1 parent 36a2941 commit c977026

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

distutils/tests/test_install.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from distutils.core import Distribution
1717
from distutils.errors import DistutilsOptionError
1818
from distutils.extension import Extension
19+
from distutils.util import is_mingw
1920

2021
from distutils.tests import support, missing_compiler_executable
2122

@@ -120,7 +121,7 @@ def _expanduser(path):
120121
assert 'usersite' in cmd.config_vars
121122

122123
actual_headers = os.path.relpath(cmd.install_headers, site.USER_BASE)
123-
if os.name == 'nt':
124+
if os.name == 'nt' and not is_mingw():
124125
site_path = os.path.relpath(os.path.dirname(orig_site), orig_base)
125126
include = os.path.join(site_path, 'Include')
126127
else:

0 commit comments

Comments
 (0)