File: conftest.py

package info (click to toggle)
python-zipp 3.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 300 kB
  • sloc: python: 896; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 244 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
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,), {})