From 6058c2313661db047fc5af48d20fe6c5e8fa4b3b Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Wed, 16 Oct 2019 13:12:45 -0400 Subject: [PATCH] Make path separator based on OS separator (#3375) --- tests/pytype_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytype_test.py b/tests/pytype_test.py index d4f422827..ee7ac0bb9 100755 --- a/tests/pytype_test.py +++ b/tests/pytype_test.py @@ -133,7 +133,7 @@ def can_run(exe: str, *, args: List[str]) -> bool: def _is_version(path: str, version: str) -> bool: - return any("{}/{}".format(d, version) in path for d in TYPESHED_SUBDIRS) + return any("{}{}{}".format(d, os.path.sep, version) in path for d in TYPESHED_SUBDIRS) def check_subdirs_discoverable(subdir_paths: List[str]) -> None: