This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients louielu, serhiy.storchaka, vstinner
Date 2017-09-01.15:14:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1504278882.97.0.450838617086.issue31324@psf.upfronthosting.co.za>
In-reply-to
Content
Workaround to run test.bisect on test_asyncio:

diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 522804be60..201d0665b2 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -1911,15 +1911,7 @@ def _match_test(test):
     if match_tests is None:
         return True
     test_id = test.id()
-
-    for match_test in match_tests:
-        if fnmatch.fnmatchcase(test_id, match_test):
-            return True
-
-        for name in test_id.split("."):
-            if fnmatch.fnmatchcase(name, match_test):
-                return True
-    return False
+    return (test_id in match_tests)
 
 
 def run_unittest(*classes):


With this patch, running 756 tests takes 12 seconds, as expected.
History
Date User Action Args
2017-09-01 15:14:42vstinnersetrecipients: + vstinner, serhiy.storchaka, louielu
2017-09-01 15:14:42vstinnersetmessageid: <1504278882.97.0.450838617086.issue31324@psf.upfronthosting.co.za>
2017-09-01 15:14:42vstinnerlinkissue31324 messages
2017-09-01 15:14:42vstinnercreate