From 695ec82c24d961313154857806fa4143000fc59c Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Sun, 5 Jan 2014 13:13:03 +0100
Subject: [PATCH] avoid wasting time on parsing pyregr test files for Cython
 tags

---
 runtests.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/runtests.py b/runtests.py
index c3d19f271..757988540 100755
--- a/runtests.py
+++ b/runtests.py
@@ -448,7 +448,10 @@ class TestBuilder(object):
                 continue
             if filename.startswith('.'):
                 continue # certain emacs backup files
-            tags = parse_tags(filepath)
+            if context == 'pyregr':
+                tags = defaultdict(list)
+            else:
+                tags = parse_tags(filepath)
             fqmodule = "%s.%s" % (context, module)
             if not [ 1 for match in self.selectors
                      if match(fqmodule, tags) ]:
-- 
2.30.9