Skip to content

Commit

Permalink
Merge pull request #339 from psathyan/add_import_fail_str
Browse files Browse the repository at this point in the history
Based on

https://github.com/python/cpython/blob/main/Lib/unittest/case.py#L500

a discovered test module that has ImportErrors would be of type
_FailedTest.

https://github.com/python/cpython/blob/main/Lib/unittest/loader.py#L38

Signed-off-by: Pragadeeswaran Sathyanarayanan <[email protected]>
  • Loading branch information
mtreinish authored Apr 7, 2023
2 parents 8d260ed + f7857f4 commit d24afca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stestr/subunit_runner/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def list_test(test):
"unittest2.loader.ModuleImportFailure.",
"unittest.loader.ModuleImportFailure.",
"discover.ModuleImportFailure.",
"unittest.loader._FailedTest.",
}
test_ids = []
errors = []
Expand Down

0 comments on commit d24afca

Please sign in to comment.