import builtins | |
import sys | |
def pytest_configure(): | |
add_future_flags() | |
def add_future_flags(): # pragma: no cover | |
if sys.version_info > (3, 10): | |
return | |
builtins.EncodingWarning = type('EncodingWarning', (Warning,), {}) | |
import builtins | |
import sys | |
def pytest_configure(): | |
add_future_flags() | |
def add_future_flags(): # pragma: no cover | |
if sys.version_info > (3, 10): | |
return | |
builtins.EncodingWarning = type('EncodingWarning', (Warning,), {}) | |