Skip to content

Commit a84a9d2

Browse files
committed
mingw_smoketests: disable distutils related tests
1 parent e434bad commit a84a9d2

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

mingw_smoketests.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,24 @@ def test_userdir_path_sep(self):
6161
self.assertEqual(str(Path("~").expanduser()), expanduser("~"))
6262
self.assertEqual(str(Path.home()), expanduser("~"))
6363

64-
def test_sysconfig_schemes(self):
65-
# https://github.com/msys2/MINGW-packages/issues/9319
66-
import sysconfig
67-
from distutils.dist import Distribution
68-
from distutils.command.install import install
69-
70-
names = ['scripts', 'purelib', 'platlib', 'data', 'include']
71-
for scheme in ["nt", "nt_user"]:
72-
for name in names:
73-
c = install(Distribution({"name": "foobar"}))
74-
c.user = (scheme == "nt_user")
75-
c.finalize_options()
76-
if name == "include":
77-
dist_path = os.path.dirname(getattr(c, "install_" + "headers"))
78-
else:
79-
dist_path = getattr(c, "install_" + name)
80-
sys_path = sysconfig.get_path(name, scheme)
81-
self.assertEqual(dist_path, sys_path, (scheme, name))
64+
# def test_sysconfig_schemes(self):
65+
# # https://github.com/msys2/MINGW-packages/issues/9319
66+
# import sysconfig
67+
# from distutils.dist import Distribution
68+
# from distutils.command.install import install
69+
70+
# names = ['scripts', 'purelib', 'platlib', 'data', 'include']
71+
# for scheme in ["nt", "nt_user"]:
72+
# for name in names:
73+
# c = install(Distribution({"name": "foobar"}))
74+
# c.user = (scheme == "nt_user")
75+
# c.finalize_options()
76+
# if name == "include":
77+
# dist_path = os.path.dirname(getattr(c, "install_" + "headers"))
78+
# else:
79+
# dist_path = getattr(c, "install_" + name)
80+
# sys_path = sysconfig.get_path(name, scheme)
81+
# self.assertEqual(dist_path, sys_path, (scheme, name))
8282

8383
def test_ctypes_find_library(self):
8484
from ctypes.util import find_library

0 commit comments

Comments
 (0)