forked from VimPlug/jedi
a few pep8 improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user