diff options
author | Robert Collins <rbtcollins@hp.com> | 2016-03-15 00:29:17 (GMT) |
---|---|---|
committer | Robert Collins <rbtcollins@hp.com> | 2016-03-15 00:29:17 (GMT) |
commit | ecd5383891e705e24409719de9dbfda6b203a6f9 (patch) | |
tree | b21c1094418a3afea58353d731b2af66003cd600 /Lib/unittest/loader.py | |
parent | 87d6e1364c368244a51574ec805eeed8e8ae87a6 (diff) | |
download | cpython-ecd5383891e705e24409719de9dbfda6b203a6f9.zip cpython-ecd5383891e705e24409719de9dbfda6b203a6f9.tar.gz cpython-ecd5383891e705e24409719de9dbfda6b203a6f9.tar.bz2 |
#25320: Handle sockets in directories unittest discovery is scanning.
Patch from Victor van den Elzen.
Diffstat (limited to 'Lib/unittest/loader.py')
-rw-r--r-- | Lib/unittest/loader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/loader.py b/Lib/unittest/loader.py index c776f16..b254c80 100644 --- a/Lib/unittest/loader.py +++ b/Lib/unittest/loader.py @@ -479,6 +479,8 @@ class TestLoader(object): return tests, True finally: self._loading_packages.discard(name) + else: + return None, False defaultTestLoader = TestLoader() |