forked from VimPlug/jedi
Merge pull request #1875 from marciomazza/fix-test-home-is-potential-project
Fix test where home could be a potential project
This commit is contained in:
@@ -178,7 +178,7 @@ def test_is_potential_project(path, expected):
|
|||||||
|
|
||||||
if expected is None:
|
if expected is None:
|
||||||
try:
|
try:
|
||||||
expected = _CONTAINS_POTENTIAL_PROJECT in os.listdir(path)
|
expected = bool(set(_CONTAINS_POTENTIAL_PROJECT) & set(os.listdir(path)))
|
||||||
except OSError:
|
except OSError:
|
||||||
expected = False
|
expected = False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user