Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Made check for modified environment less strict
Browse files Browse the repository at this point in the history
Now if the order of the environment variables is allowed to change, as
long as their key and value are the same
  • Loading branch information
andreabrambilla authored and Andrea Brambilla committed Oct 18, 2019
1 parent cde7535 commit de7adc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ def env_save():
environment_pre = [(key, val) for key, val in os.environ.items() if key != "PYTEST_CURRENT_TEST"]
yield
environment_post = [(key, val) for key, val in os.environ.items() if key != "PYTEST_CURRENT_TEST"]
if environment_pre != environment_post:
if set(environment_pre) != set(environment_post):
raise EnvironmentError("Your environment has changed after that test, please reset")

0 comments on commit de7adc3

Please sign in to comment.