Skip to content

Commit

Permalink
tests: use uppercase envvar on Windows (pypa#1455)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Apr 4, 2023
1 parent f16ccf4 commit bd5294b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@


def skip_if_no_msvc(arm64=False):
programfiles = os.getenv("ProgramFiles(x86)", "") or os.getenv("ProgramFiles", "")
programfiles = os.getenv("PROGRAMFILES(X86)", "") or os.getenv("PROGRAMFILES", "")
if not programfiles:
pytest.skip("Requires %ProgramFiles(x86)% variable to be set")
pytest.skip("Requires %PROGRAMFILES(X86)% variable to be set")

vswhere = os.path.join(programfiles, "Microsoft Visual Studio", "Installer", "vswhere.exe")
if not os.path.isfile(vswhere):
Expand Down

0 comments on commit bd5294b

Please sign in to comment.