Skip to content

Commit

Permalink
TST: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolodi committed Nov 11, 2023
1 parent 8d8fcd1 commit 6ac0c2f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def test_purelib_platlib_split(package_purelib_platlib_split, tmp_path):


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


def test_subprojects(package_subproject, tmp_path):
Expand Down

0 comments on commit 6ac0c2f

Please sign in to comment.