From 840dd7ecebd8fe640c522db15bd1ba4f394e6a2d Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@k1024.org>
Date: Mon, 14 Nov 2016 00:55:28 +0100
Subject: [PATCH] Also run tests using python-dbg

---
 Makefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 9d42db0..905791d 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,12 @@ dist:
 
 test:
 	@for ver in 2.4 2.5 2.6 2.7 3.0 3.1 3.2 3.3 3.4 3.5; do \
-	  if type python$$ver >/dev/null; then \
-	    echo Testing with python$$ver; \
-	    python$$ver ./setup.py test -q; \
-	  fi; \
+	  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; \
+	    fi; \
+	  done; \
 	done;
 	@if type pypy >/dev/null; then \
 	  echo Testing with pypy; \
-- 
2.39.5