Skip to content

Commit 0a4f350

Browse files
committed
Add test capturing missed expectation.
Ref #4786
1 parent 84b7b2a commit 0a4f350

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

setuptools/msvc.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,16 @@ def VCTools(self):
10241024
------
10251025
list of str
10261026
paths
1027+
1028+
When host CPU is ARM, the tools should be found for ARM.
1029+
1030+
>>> getfixture('windows_only')
1031+
>>> mp = getfixture('monkeypatch')
1032+
>>> mp.setattr(PlatformInfo, 'current_cpu', 'arm64')
1033+
>>> ei = EnvironmentInfo(arch='irrelevant')
1034+
>>> paths = ei.VCTools
1035+
>>> any('HostARM64' in path for path in paths)
1036+
True
10271037
"""
10281038
si = self.si
10291039
tools = [os.path.join(si.VCInstallDir, 'VCPackages')]

0 commit comments

Comments
 (0)