Skip to content

Commit 37b0ccb

Browse files
Fix env manipulation
1 parent 82da97b commit 37b0ccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_user_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ def test_user_agent_with_partner(user_agent):
4444
assert 'partner/differenttest' in user_agent.to_string()
4545

4646

47-
@pytest.fixture(scope="session")
47+
@pytest.fixture(scope="function")
4848
def clear_cicd():
4949
# Save and clear env vars.
50-
original_env = os.environ
50+
original_env = os.environ.copy()
5151
os.environ.clear()
5252

5353
# Clear cached CICD provider.

0 commit comments

Comments
 (0)