From ae76bb8d0681797b5ff6e22d5f424ed28936da47 Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@k1024.org>
Date: Tue, 26 Nov 2019 23:41:42 +0100
Subject: [PATCH] Switch to running tests via pytest

This doesn't change the test code, just the runner (for now).
---
 Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 6535f02..39c4b61 100644
--- a/Makefile
+++ b/Makefile
@@ -40,14 +40,16 @@ test:
 	  for flavour in "" "-dbg"; do \
 	    if type python$$ver$$flavour >/dev/null; then \
 	      echo Testing with python$$ver$$flavour; \
-	      python$$ver$$flavour ./setup.py test -q; \
+	      python$$ver$$flavour ./setup.py build_ext -i; \
+	      python$$ver$$flavour -m pytest tests ;\
 	    fi; \
 	  done; \
 	done; \
 	for pp in pypy pypy3; do \
 	  if type $$pp >/dev/null; then \
 	    echo Testing with $$pp; \
-	    $$pp ./setup.py test -q; \
+	    $$pp ./setup.py build_ext -i; \
+	    $$pp -m pytest tests; \
 	  fi; \
 	done
 
-- 
2.39.5