From 6c5ed189015571b30038df7511834642070ae49c Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Thu, 11 Feb 2021 19:49:34 +0000 Subject: [PATCH] Attempt to fix test --- mypy/test/test_find_sources.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mypy/test/test_find_sources.py b/mypy/test/test_find_sources.py index 6d66a28f4e2d..d45efa4907c6 100644 --- a/mypy/test/test_find_sources.py +++ b/mypy/test/test_find_sources.py @@ -358,8 +358,8 @@ def test_find_sources_exclude(self) -> None: # nothing should be ignored as a result of this options.exclude = "|".join(( - "/pkg/a/", "/2", "/1", "/pk/", "/kg", "/g.py", "/bc", "/xxx/pkg/a2/b/f.py" - "xxx/pkg/a2/b/f.py", + "/pkg/a/", "/2/", "/1/", "/pk/", "/kg/", r"/g\.py", "/b/d", r"/xxx/pkg/a2/b/f\.py" + r"xxx/pkg/a2/b/f\.py", )) fscache = FakeFSCache(files) assert len(find_sources(["/"], options, fscache)) == len(files) @@ -372,4 +372,5 @@ def test_find_sources_exclude(self) -> None: "pkg/a2/b/f.py", } fscache = FakeFSCache(files) + print('cwd: {}'.format(self.tempdir)) assert len(find_sources(["/"], options, fscache)) == len(files)