1
0
forked from VimPlug/jedi

a few pep8 improvements

This commit is contained in:
David Halter
2012-11-21 16:49:01 +01:00
parent 586dcc273c
commit 576e53f771
3 changed files with 4 additions and 3 deletions

View File

@@ -207,7 +207,7 @@ class TestRegression(Base):
try:
s = unicode("import datetime; datetime.d")
except NameError:
pass # python 3 has no unicode method
pass # python 3 has no unicode method
else:
assert len(self.complete(s))
@@ -218,7 +218,7 @@ class TestRegression(Base):
comment = utf8("# multi-byte comment あいうえお")
s = (unicode('%s\n%s') % (code, comment)).encode('utf-8')
except NameError:
pass # python 3 has no unicode method
pass # python 3 has no unicode method
else:
assert len(self.complete(s, (1, len(code))))
@@ -234,6 +234,7 @@ class TestFeature(Base):
assert self.complete('import os; os.path.join')[0].full_name \
== 'os.path.join'
class TestSpeed(Base):
def _check_speed(time_per_run, number=4, run_warm=True):
""" Speed checks should typically be very tolerant. Some machines are