| Index: third_party/typ/typ/runner.py
|
| diff --git a/third_party/typ/typ/runner.py b/third_party/typ/typ/runner.py
|
| index c2975f166e96a497741854f17193e08cf935a197..7f5aeed6cf18fc4c9da541b8de026d350f7cd8bb 100644
|
| --- a/third_party/typ/typ/runner.py
|
| +++ b/third_party/typ/typ/runner.py
|
| @@ -407,6 +407,11 @@ class Runner(object):
|
| add_tests(suite)
|
| else:
|
| add_tests(loader.loadTestsFromName(name))
|
| + if hasattr(loader, 'errors') and loader.errors:
|
| + # In Python3's version of unittest, loader failures get converted
|
| + # into failed test cases, rather than raising exceptions. However,
|
| + # the errors also get recorded so you can err out immediately.
|
| + raise ImportError(loader.errors)
|
|
|
| def _run_tests(self, result_set, test_set):
|
| h = self.host
|
|
|