Skip to content

Commit 8e46b13

Browse files
committed
Use intermediate variable
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 8d28cef commit 8e46b13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_cmd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ def check_about_stdout(options, expected_loc, regen=False):
257257
ef.write(stdout)
258258

259259
expected_file = get_test_loc(expected_loc, must_exists=True)
260-
assert open(expected_file).read() == stdout
260+
expected = open(expected_file).read()
261+
assert expected == stdout
261262

262263

263264
def test_about_help_text(regen=False):

0 commit comments

Comments
 (0)