Skip to content

No warnings when parsing JSON in the test metacls#158

Open
s-t-e-v-e-n-k wants to merge 1 commit intothibaudcolas:mainfrom
s-t-e-v-e-n-k:avoid-resourcewarning-in-fixture
Open

No warnings when parsing JSON in the test metacls#158
s-t-e-v-e-n-k wants to merge 1 commit intothibaudcolas:mainfrom
s-t-e-v-e-n-k:avoid-resourcewarning-in-fixture

Conversation

@s-t-e-v-e-n-k
Copy link

Newer versions of pytest will now keep track of warnings in setup methods (or classes that are used in the creation of test methods), and may end up raising them. Avoid that by using a context manager to close the file when we're done with it.

Newer versions of pytest will now keep track of warnings in setup methods (or classes that are used in the creation of test methods), and may end up raising them. Avoid that by using a context manager to close the file when we're done with it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant