mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Corrected an error in the math fuzzy completion test
This commit is contained in:
@@ -317,13 +317,13 @@ def test_str_fuzzy_completion(Script):
|
|||||||
reason="requires python3.3 or higher")
|
reason="requires python3.3 or higher")
|
||||||
def test_math_fuzzy_completion(Script):
|
def test_math_fuzzy_completion(Script):
|
||||||
script = Script('import math\nmath.og')
|
script = Script('import math\nmath.og')
|
||||||
assert ['copysign', 'log', 'log10',
|
assert ['copysign', 'log', 'log10', 'log1p',
|
||||||
'log1p'] == [comp.name for comp in script.completions(fuzzy=True)]
|
'log2'] == [comp.name for comp in script.completions(fuzzy=True)]
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(sys.version_info >= (3, 3),
|
@pytest.mark.skipif(sys.version_info >= (3, 3),
|
||||||
reason="requires python3.3 or higher")
|
reason="requires python3.3 or higher")
|
||||||
def test_math_fuzzy_completion(Script):
|
def test_math_fuzzy_completion(Script):
|
||||||
script = Script('import math\nmath.og')
|
script = Script('import math\nmath.og')
|
||||||
assert ['copysign', 'log', 'log10', 'log1p',
|
assert ['copysign', 'log', 'log10',
|
||||||
'log2'] == [comp.name for comp in script.completions(fuzzy=True)]
|
'log1p'] == [comp.name for comp in script.completions(fuzzy=True)]
|
||||||
|
|||||||
Reference in New Issue
Block a user