Fix test where home could be a potential project

This commit is contained in:
Marcio Mazza
2022-09-01 13:01:25 -03:00
parent 695f0832b4
commit 85c7f14562

View File

@@ -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