Moved imports to top of file

This commit is contained in:
Andrew Murray 2020-12-31 09:46:16 +11:00 committed by Eric Soroos
parent 59ee809f13
commit a58ff327d4

View File

@ -1,4 +1,7 @@
import io import io
import warnings
import pytest
def pytest_report_header(config): def pytest_report_header(config):
@ -17,10 +20,6 @@ def pytest_configure(config):
# Ensure that the mark is defined # Ensure that the mark is defined
# even in cases where pytest-valgrind isn't installed # even in cases where pytest-valgrind isn't installed
import warnings
import pytest
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter("error") warnings.simplefilter("error")
try: try: