From b56c1cb1185c8d20276688f29509947cb46a26d4 Mon Sep 17 00:00:00 2001 From: ColinDuquesnoy Date: Wed, 26 Feb 2014 14:21:52 +0100 Subject: [PATCH] Add test with standard lib math.cos( should return --- test/test_compiled.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/test/test_compiled.py b/test/test_compiled.py index b87ee7cb..8ea00e80 100644 --- a/test/test_compiled.py +++ b/test/test_compiled.py @@ -20,7 +20,8 @@ def test_completions(): @cwd_at('test/extensions') -def test_call_signatures(): +def test_call_signatures_extension(): + # with a cython extension if platform.architecture()[0] == '64bit': package_name = "compiled%s%s" % sys.version_info[:2] sys.path.insert(0, os.getcwd()) @@ -30,4 +31,13 @@ def test_call_signatures(): defs = s.call_signatures() for call_def in defs: for param in call_def.params: - pass \ No newline at end of file + pass + + +def test_call_signatures_stdlib(): + code = "import math; math.cos(" + s = jedi.Script(code) + defs = s.call_signatures() + for call_def in defs: + for p in call_def.params: + assert str(p) == 'x'