File size: 244 Bytes
065fee7
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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,), {})