Skip to content

Commit 29e9a0b

Browse files
committed
testutils: slight tweak to file_objects_equal()
Remove some code from the scope of a context manager that doesn’t need to be there.
1 parent c6b9bd3 commit 29e9a0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/testutils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def file_objects_equal(
5555
stdout = io.StringIO()
5656
with contextlib.redirect_stdout(stdout):
5757
filecmp.dircmp(a, b).report_full_closure()
58-
match = re.search("Differing files|Only in", stdout.getvalue())
59-
if match is None:
60-
return True
58+
match = re.search("Differing files|Only in", stdout.getvalue())
59+
if match is None:
60+
return True
6161
print(stdout.getvalue()) # pragma: no cover
6262
return False # pragma: no cover
6363

0 commit comments

Comments
 (0)