--- a/tests/test-match.py Sun Feb 10 14:35:36 2019 -0800
+++ b/tests/test-match.py Sat Feb 09 22:50:53 2019 -0800
@@ -185,7 +185,7 @@
class ExactMatcherTests(unittest.TestCase):
def testVisitdir(self):
- m = matchmod.exact(b'x', b'', files=[b'dir/subdir/foo.txt'])
+ m = matchmod.exact(files=[b'dir/subdir/foo.txt'])
assert isinstance(m, matchmod.exactmatcher)
self.assertTrue(m.visitdir(b'.'))
self.assertTrue(m.visitdir(b'dir'))
@@ -196,7 +196,7 @@
self.assertFalse(m.visitdir(b'folder'))
def testVisitchildrenset(self):
- m = matchmod.exact(b'x', b'', files=[b'dir/subdir/foo.txt'])
+ m = matchmod.exact(files=[b'dir/subdir/foo.txt'])
assert isinstance(m, matchmod.exactmatcher)
self.assertEqual(m.visitchildrenset(b'.'), {b'dir'})
self.assertEqual(m.visitchildrenset(b'dir'), {b'subdir'})
@@ -206,11 +206,11 @@
self.assertEqual(m.visitchildrenset(b'folder'), set())
def testVisitchildrensetFilesAndDirs(self):
- m = matchmod.exact(b'x', b'', files=[b'rootfile.txt',
- b'a/file1.txt',
- b'a/b/file2.txt',
- # no file in a/b/c
- b'a/b/c/d/file4.txt'])
+ m = matchmod.exact(files=[b'rootfile.txt',
+ b'a/file1.txt',
+ b'a/b/file2.txt',
+ # no file in a/b/c
+ b'a/b/c/d/file4.txt'])
assert isinstance(m, matchmod.exactmatcher)
self.assertEqual(m.visitchildrenset(b'.'), {b'a', b'rootfile.txt'})
self.assertEqual(m.visitchildrenset(b'a'), {b'b', b'file1.txt'})