8000 Fix test exclusion on Py3.3 · r3m0t/python-future@58e78d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58e78d2

Browse files
committed
Fix test exclusion on Py3.3
1 parent a50f5b8 commit 58e78d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

discover_tests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ def exclude_tests(suite, blacklist):
4040

4141
for test_group in suite._tests:
4242
for test in test_group:
43+
if not hasattr(test, '_tests'):
44+
# e.g. ModuleImportFailure
45+
continue
4346
for subtest in test._tests:
4447
method = subtest._testMethodName
4548
print(method)

0 commit comments

Comments
 (0)
0