##// END OF EJS Templates
tests: fix test-match.py on Python3...
Augie Fackler -
r41671:4dd07bf8 default
parent child Browse files
Show More
@@ -261,13 +261,13 b' class DifferenceMatcherTests(unittest.Te'
261 261 # assertTrue does NOT verify that it's a bool, just that it's truthy.
262 262 # While we may want to eventually make these return 'all', they should
263 263 # not currently do so.
264 self.assertEqual(dm.visitdir(b'.'), 'all')
265 self.assertEqual(dm.visitdir(b'dir'), 'all')
266 self.assertEqual(dm.visitdir(b'dir/subdir'), 'all')
267 self.assertEqual(dm.visitdir(b'dir/subdir/z'), 'all')
268 self.assertEqual(dm.visitdir(b'dir/foo'), 'all')
269 self.assertEqual(dm.visitdir(b'dir/subdir/x'), 'all')
270 self.assertEqual(dm.visitdir(b'folder'), 'all')
264 self.assertEqual(dm.visitdir(b'.'), b'all')
265 self.assertEqual(dm.visitdir(b'dir'), b'all')
266 self.assertEqual(dm.visitdir(b'dir/subdir'), b'all')
267 self.assertEqual(dm.visitdir(b'dir/subdir/z'), b'all')
268 self.assertEqual(dm.visitdir(b'dir/foo'), b'all')
269 self.assertEqual(dm.visitdir(b'dir/subdir/x'), b'all')
270 self.assertEqual(dm.visitdir(b'folder'), b'all')
271 271
272 272 def testVisitchildrensetM2never(self):
273 273 m1 = matchmod.alwaysmatcher(b'', b'')
@@ -294,8 +294,8 b' class DifferenceMatcherTests(unittest.Te'
294 294 # an 'all' pattern, just True.
295 295 self.assertEqual(dm.visitdir(b'dir/subdir/z'), True)
296 296 self.assertEqual(dm.visitdir(b'dir/subdir/x'), True)
297 self.assertEqual(dm.visitdir(b'dir/foo'), 'all')
298 self.assertEqual(dm.visitdir(b'folder'), 'all')
297 self.assertEqual(dm.visitdir(b'dir/foo'), b'all')
298 self.assertEqual(dm.visitdir(b'folder'), b'all')
299 299
300 300 def testVisitchildrensetM2SubdirPrefix(self):
301 301 m1 = matchmod.alwaysmatcher(b'', b'')
@@ -320,7 +320,7 b' class DifferenceMatcherTests(unittest.Te'
320 320 dm = matchmod.differencematcher(m1, m2)
321 321 self.assertEqual(dm.visitdir(b'.'), True)
322 322 self.assertEqual(dm.visitdir(b'dir'), True)
323 self.assertEqual(dm.visitdir(b'dir/subdir'), 'all')
323 self.assertEqual(dm.visitdir(b'dir/subdir'), b'all')
324 324 self.assertFalse(dm.visitdir(b'dir/foo'))
325 325 self.assertFalse(dm.visitdir(b'folder'))
326 326 # OPT: We should probably return False for these; we don't because
General Comments 0
You need to be logged in to leave comments. Login now