From e65e7a6716194a1f1f7aeb81a636bb330c9a382a Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 25 Jul 2016 12:45:32 -0400 Subject: [PATCH] Fix minor style in completion test --- test/test_ui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test_ui.py b/test/test_ui.py index c41c4ab2c..61e3ff33e 100644 --- a/test/test_ui.py +++ b/test/test_ui.py @@ -1151,10 +1151,10 @@ class CompletionTest(_common.TestCase, TestHelper): tester.stdin.writelines(completion_script.splitlines(True)) # Load test suite. - test_script = os.path.join(_common.RSRC, b'test_completion.sh') - with open(test_script, 'rb') as test_script: - tester.stdin.writelines(test_script) - (out, err) = tester.communicate() + test_script_name = os.path.join(_common.RSRC, b'test_completion.sh') + with open(test_script_name, 'rb') as test_script_file: + tester.stdin.writelines(test_script_file) + out, err = tester.communicate() if tester.returncode != 0 or out != b'completion tests passed\n': print(out.decode('utf-8')) self.fail(u'test/test_completion.sh did not execute properly')