8000 Attempt to fix test · python/mypy@6c5ed18 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6c5ed18

Browse files
committed
Attempt to fix test
1 parent e470d93 commit 6c5ed18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mypy/test/test_find_sources.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ def test_find_sources_exclude(self) -> None:
358358

359359
# nothing should be ignored as a result of this
360360
options.exclude = "|".join((
361-
"/pkg/a/", "/2", "/1", "/pk/", "/kg", "/g.py", "/bc", "/xxx/pkg/a2/b/f.py"
362-
"xxx/pkg/a2/b/f.py",
361+
"/pkg/a/", "/2/", "/1/", "/pk/", "/kg/", r"/g\.py", "/b/d", r"/xxx/pkg/a2/b/f\.py"
362+
r"xxx/pkg/a2/b/f\.py",
363363
))
364364
fscache = FakeFSCache(files)
365365
assert len(find_sources(["/"], options, fscache)) == len(files)
@@ -372,4 +372,5 @@ def test_find_sources_exclude(self) -> None:
372372
"pkg/a2/b/f.py",
373373
}
374374
fscache = FakeFSCache(files)
375+
print('cwd: {}'.format(self.tempdir))
375376
assert len(find_sources(["/"], options, fscache)) == len(files)

0 commit comments

Comments
 (0)
0