File: conftest.py

package info (click to toggle)
python-auditwheel 6.5.1%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,012 kB
  • sloc: python: 6,053; ansic: 304; cpp: 66; sh: 28; makefile: 25; f90: 12
file content (10 lines) | stat: -rw-r--r-- 231 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import os

import pytest


@pytest.fixture(autouse=True, scope="session")
def clean_env() -> None:
    variables = ("AUDITWHEEL_PLAT", "AUDITWHEEL_ZIP_COMPRESSION_LEVEL")
    for var in variables:
        os.environ.pop(var, None)