From c5cfc0c4d140044159ac871b5a4293ff8b0b2644 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 10 Jul 2024 18:29:16 +0200 Subject: [PATCH] Allow running tests with pytest-3 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 627e568..145807c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PYTEST = $(shell which pytest pytest-3 ) + .PHONY: clean publish test docs dist: @@ -7,7 +9,7 @@ publish : twine upload dist/*.tar.gz dist/*.whl test: - pytest -v + test -e "$(PYTEST)" && $(PYTEST) -v # run pytest if found flake8 vermin toot