Skip to content

Commit cdf3dea

Browse files
dnicolodirgommers
authored andcommitted
TST: cleanup
1 parent af3c42b commit cdf3dea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_wheel.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def test_purelib_platlib_split(package_purelib_platlib_split, tmp_path):
247247

248248

249249
@pytest.mark.skipif(sys.platform != 'darwin', reason='macOS specific test')
250-
@pytest.mark.parametrize(('arch'), ['x86_64', 'arm64'])
250+
@pytest.mark.parametrize('arch', ['x86_64', 'arm64'])
251251
def test_archflags_envvar(package_purelib_and_platlib, monkeypatch, tmp_path, arch):
252252
try:
253253
monkeypatch.setenv('ARCHFLAGS', f'-arch {arch}')
@@ -256,8 +256,7 @@ def test_archflags_envvar(package_purelib_and_platlib, monkeypatch, tmp_path, ar
256256
assert name.group('plat').endswith(arch)
257257
finally:
258258
# revert environment variable setting done by the in-process build
259-
if '_PYTHON_HOST_PLATFORM' in os.environ:
260-
del os.environ['_PYTHON_HOST_PLATFORM']
259+
os.environ.pop('_PYTHON_HOST_PLATFORM', None)
261260

262261

263262
def test_subprojects(package_subproject, tmp_path):

0 commit comments

Comments
 (0)