mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
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:
|
||||
try:
|
||||
expected = _CONTAINS_POTENTIAL_PROJECT in os.listdir(path)
|
||||
expected = bool(set(_CONTAINS_POTENTIAL_PROJECT) & set(os.listdir(path)))
|
||||
except OSError:
|
||||
expected = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user