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)