diff --git a/Makefile b/Makefile index fdde3416b..6e55e4c7a 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,7 @@ co: done coverage: - python3 selftest.py - python3 setup.py test + pytest -qq rm -r htmlcov || true coverage report diff --git a/setup.cfg b/setup.cfg index 1c6ebc84c..17e85bd21 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,3 @@ -[aliases] -test=pytest - [flake8] extend-ignore = E203, W503 max-line-length = 88 diff --git a/setup.py b/setup.py index fe024ceae..ea549277a 100755 --- a/setup.py +++ b/setup.py @@ -845,9 +845,6 @@ def debug_build(): return hasattr(sys, "gettotalrefcount") -needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv) -pytest_runner = ["pytest-runner"] if needs_pytest else [] - try: setup( name=NAME, @@ -884,8 +881,6 @@ try: cmdclass={"build_ext": pil_build_ext}, ext_modules=[Extension("PIL._imaging", ["_imaging.c"])], include_package_data=True, - setup_requires=pytest_runner, - tests_require=["pytest"], packages=["PIL"], package_dir={"": "src"}, keywords=["Imaging"],