Message301126
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. |
|
Date |
User |
Action |
Args |
2017-09-01 15:14:42 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka, louielu |
2017-09-01 15:14:42 | vstinner | set | messageid: <1504278882.97.0.450838617086.issue31324@psf.upfronthosting.co.za> |
2017-09-01 15:14:42 | vstinner | link | issue31324 messages |
2017-09-01 15:14:42 | vstinner | create | |
|