Convert stub: use __future__ imports

Even tiny stubs can't escape the wrath of flake8!
This commit is contained in:
Adrian Sampson 2016-05-31 17:55:12 -07:00
parent fc3f64de95
commit f96aa24a79
2 changed files with 2 additions and 1 deletions

View file

@ -4,6 +4,7 @@
a specified text tag.
"""
from __future__ import division, absolute_import, print_function
import sys

View file

@ -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`.