Skip to content

Commit

Permalink
Attempt to fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL committed Feb 11, 2021
1 parent e470d93 commit 6c5ed18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mypy/test/test_find_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 6c5ed18

Please sign in to comment.