comparison tests/test-walkrepo.py @ 52638:dc36535a5edc

style: drop extraneous parentheses These were rewritten by `pyupgrade`.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 14:07:43 -0500
parents 6000f5b25c9b
children
comparison
equal deleted inserted replaced
52637:3b6f25190157 52638:dc36535a5edc
33 def runtest(): 33 def runtest():
34 reposet = frozenset(walkrepos(b'.', followsym=True)) 34 reposet = frozenset(walkrepos(b'.', followsym=True))
35 if sym and (len(reposet) != 3): 35 if sym and (len(reposet) != 3):
36 print("reposet = %r" % (reposet,)) 36 print("reposet = %r" % (reposet,))
37 print( 37 print(
38 ( 38 "Found %d repositories when I should have found 3" % (len(reposet),)
39 "Found %d repositories when I should have found 3"
40 % (len(reposet),)
41 )
42 ) 39 )
43 if (not sym) and (len(reposet) != 2): 40 if (not sym) and (len(reposet) != 2):
44 print("reposet = %r" % (reposet,)) 41 print("reposet = %r" % (reposet,))
45 print( 42 print(
46 ( 43 "Found %d repositories when I should have found 2" % (len(reposet),)
47 "Found %d repositories when I should have found 2"
48 % (len(reposet),)
49 )
50 ) 44 )
51 sub1set = frozenset( 45 sub1set = frozenset(
52 (pjoin(b'.', b'sub1'), pjoin(b'.', b'circle', b'subdir', b'sub1')) 46 (pjoin(b'.', b'sub1'), pjoin(b'.', b'circle', b'subdir', b'sub1'))
53 ) 47 )
54 if len(sub1set & reposet) != 1: 48 if len(sub1set & reposet) != 1: