11import contextlib
22import sys
33from pathlib import Path
4- from typing import Dict
54
65import pytest
76import setuptools ._distutils .util
1615
1716
1817@contextlib .contextmanager
19- def patched_environment (monkeypatch : pytest .MonkeyPatch , environment : Dict [str , str ]):
18+ def patched_environment (monkeypatch : pytest .MonkeyPatch , environment : dict [str , str ]):
2019 with monkeypatch .context () as mp :
2120 for envvar , val in environment .items ():
2221 mp .setenv (name = envvar , value = val )
@@ -25,7 +24,7 @@ def patched_environment(monkeypatch: pytest.MonkeyPatch, environment: Dict[str,
2524
2625def test_x86 (tmp_path : Path , monkeypatch : pytest .MonkeyPatch ):
2726 arch = "32"
28- environment : Dict [str , str ] = {}
27+ environment : dict [str , str ] = {}
2928
3029 configuration = PythonConfiguration ("irrelevant" , arch , "irrelevant" , None )
3130
@@ -39,7 +38,7 @@ def test_x86(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
3938
4039def test_x64 (tmp_path : Path , monkeypatch : pytest .MonkeyPatch ):
4140 arch = "64"
42- environment : Dict [str , str ] = {}
41+ environment : dict [str , str ] = {}
4342
4443 configuration = PythonConfiguration ("irrelevant" , arch , "irrelevant" , None )
4544
@@ -56,7 +55,7 @@ def test_x64(tmp_path: Path, monkeypatch: pytest.MonkeyPatch):
5655)
5756def test_arm (tmp_path : Path , monkeypatch : pytest .MonkeyPatch ):
5857 arch = "ARM64"
59- environment : Dict [str , str ] = {}
58+ environment : dict [str , str ] = {}
6059
6160 configuration = PythonConfiguration ("irrelevant" , arch , "irrelevant" , None )
6261
0 commit comments