File: conftest.py

package info (click to toggle)
pytest-mpl 0.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,132 kB
  • sloc: python: 2,514; javascript: 179; makefile: 16
file content (9 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
import pytest
from packaging.version import Version

pytest_plugins = ["pytester"]

if Version(pytest.__version__) < Version("6.2.0"):
    @pytest.fixture
    def pytester(testdir):
        return testdir