mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Moved imports to top of file
This commit is contained in:
parent
59ee809f13
commit
a58ff327d4
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user