--- a/tests/test-manifest.py Sun Feb 10 14:35:36 2019 -0800
+++ b/tests/test-manifest.py Sat Feb 09 22:50:53 2019 -0800
@@ -289,8 +289,7 @@
the resulting manifest.'''
m = self.parsemanifest(A_HUGE_MANIFEST)
- match = matchmod.exact(b'/', b'',
- [b'file1', b'file200', b'file300'])
+ match = matchmod.exact([b'file1', b'file200', b'file300'])
m2 = m.matches(match)
w = (b'file1\0%sx\n'
@@ -304,9 +303,8 @@
'''
m = self.parsemanifest(A_DEEPER_MANIFEST)
- match = matchmod.exact(b'/', b'',
- [b'a/b/c/bar.txt', b'a/b/d/qux.py',
- b'readme.txt', b'nonexistent'])
+ match = matchmod.exact([b'a/b/c/bar.txt', b'a/b/d/qux.py',
+ b'readme.txt', b'nonexistent'])
m2 = m.matches(match)
self.assertEqual(
@@ -329,7 +327,7 @@
m = self.parsemanifest(A_HUGE_MANIFEST)
flist = m.keys()[80:300]
- match = matchmod.exact(b'/', b'', flist)
+ match = matchmod.exact(flist)
m2 = m.matches(match)
self.assertEqual(flist, m2.keys())
@@ -363,7 +361,7 @@
against a directory.'''
m = self.parsemanifest(A_DEEPER_MANIFEST)
- match = matchmod.exact(b'/', b'', [b'a/b'])
+ match = matchmod.exact([b'a/b'])
m2 = m.matches(match)
self.assertEqual([], m2.keys())