We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198cd3b commit d16d759Copy full SHA for d16d759
1 file changed
distutils/tests/test_install.py
@@ -126,13 +126,12 @@ def cleanup():
126
127
actual_headers = os.path.relpath(cmd.install_headers, self.user_base)
128
if os.name == 'nt':
129
- expect_headers = os.path.join(
130
- os.path.relpath(os.path.dirname(self.old_user_site), self.old_user_base),
131
- 'Include',
132
- 'xx',
133
- )
+ site_path = os.path.relpath(
+ os.path.dirname(self.old_user_site), self.old_user_base)
+ include = os.path.join(site_path, 'Include')
134
else:
135
- expect_headers = os.path.join(sysconfig.get_python_inc(0, ''), 'xx')
+ include = sysconfig.get_python_inc(0, '')
+ expect_headers = os.path.join(include, 'xx')
136
137
self.assertEqual(os.path.normcase(actual_headers), os.path.normcase(expect_headers))
138
0 commit comments