From 73f18a6a69245b08f92f425a87db99e0992ad28c Mon Sep 17 00:00:00 2001 From: Jukka Lehtosalo Date: Mon, 15 Feb 2021 12:37:07 +0000 Subject: [PATCH] Revert "Attempt to fix test" This reverts commit 6c5ed189015571b30038df7511834642070ae49c. --- mypy/test/test_find_sources.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mypy/test/test_find_sources.py b/mypy/test/test_find_sources.py index d45efa4907c6e..6d66a28f4e2db 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/", r"/g\.py", "/b/d", r"/xxx/pkg/a2/b/f\.py" - r"xxx/pkg/a2/b/f\.py", + "/pkg/a/", "/2", "/1", "/pk/", "/kg", "/g.py", "/bc", "/xxx/pkg/a2/b/f.py" + "xxx/pkg/a2/b/f.py", )) fscache = FakeFSCache(files) assert len(find_sources(["/"], options, fscache)) == len(files) @@ -372,5 +372,4 @@ 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)