From f96aa24a790a351cbd6cb2fbd8715676e3abe423 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Tue, 31 May 2016 17:55:12 -0700 Subject: [PATCH] Convert stub: use __future__ imports Even tiny stubs can't escape the wrath of flake8! --- test/rsrc/convert_stub.py | 1 + test/test_convert.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/rsrc/convert_stub.py b/test/rsrc/convert_stub.py index aa0d2ea72..747493134 100755 --- a/test/rsrc/convert_stub.py +++ b/test/rsrc/convert_stub.py @@ -4,6 +4,7 @@ a specified text tag. """ +from __future__ import division, absolute_import, print_function import sys diff --git a/test/test_convert.py b/test/test_convert.py index ac3a50c77..9e3c106bd 100644 --- a/test/test_convert.py +++ b/test/test_convert.py @@ -39,7 +39,7 @@ class TestHelper(helper.TestHelper): # A Python script that copies the file and appends a tag. stub = os.path.join(_common.RSRC, 'convert_stub.py') - return u'python {} $source $dest {}'.format(stub, tag) + return u"python '{}' $source $dest {}".format(stub, tag) def assertFileTag(self, path, tag): # noqa """Assert that the path is a file and the files content ends with `tag`.