mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-11 08:11:50 +08:00
pep8
This commit is contained in:
@@ -50,9 +50,9 @@ class TestRegression(Base):
|
|||||||
imports = api.imports
|
imports = api.imports
|
||||||
imports.star_import_cache = {} # first empty...
|
imports.star_import_cache = {} # first empty...
|
||||||
# path needs to be not-None (otherwise caching effects are not visible)
|
# path needs to be not-None (otherwise caching effects are not visible)
|
||||||
api.Script('', 1,0, '').complete()
|
api.Script('', 1, 0, '').complete()
|
||||||
time.sleep(2*new)
|
time.sleep(2 * new)
|
||||||
api.Script('', 1,0, '').complete()
|
api.Script('', 1, 0, '').complete()
|
||||||
|
|
||||||
# reset values
|
# reset values
|
||||||
api.settings.star_import_cache_validity = old
|
api.settings.star_import_cache_validity = old
|
||||||
@@ -251,7 +251,6 @@ class TestRegression(Base):
|
|||||||
assert len(api.Script(s, 1, 15, '/').get_definition()) == 1
|
assert len(api.Script(s, 1, 15, '/').get_definition()) == 1
|
||||||
assert len(api.Script(s, 1, 10, '/').get_definition()) == 1
|
assert len(api.Script(s, 1, 10, '/').get_definition()) == 1
|
||||||
|
|
||||||
|
|
||||||
def test_unicode_script(self):
|
def test_unicode_script(self):
|
||||||
""" normally no unicode objects are being used. (<=2.7) """
|
""" normally no unicode objects are being used. (<=2.7) """
|
||||||
s = unicode("import datetime; datetime.timedelta")
|
s = unicode("import datetime; datetime.timedelta")
|
||||||
@@ -303,10 +302,11 @@ class TestRegression(Base):
|
|||||||
assert [d.doc for d in defs]
|
assert [d.doc for d in defs]
|
||||||
|
|
||||||
def test_goto_following_on_imports(self):
|
def test_goto_following_on_imports(self):
|
||||||
if not is_py25:
|
if is_py25:
|
||||||
g = self.goto("import multiprocessing.dummy; multiprocessing.dummy")
|
return
|
||||||
assert len(g) == 1
|
g = self.goto("import multiprocessing.dummy; multiprocessing.dummy")
|
||||||
assert g[0].start_pos != (0, 0)
|
assert len(g) == 1
|
||||||
|
assert g[0].start_pos != (0, 0)
|
||||||
|
|
||||||
|
|
||||||
class TestFeature(Base):
|
class TestFeature(Base):
|
||||||
|
|||||||
Reference in New Issue
Block a user