1
0
forked from VimPlug/jedi

fix test case for python3.3

This commit is contained in:
Dave Halter
2014-03-14 00:43:25 +01:00
parent 88af0ad7d7
commit 56206a1ad8
3 changed files with 16 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ import textwrap
from ..helpers import TestCase
from jedi import Script
from jedi._compatibility import is_py33
class TestCallSignatures(TestCase):
@@ -167,7 +168,12 @@ class TestParams(TestCase):
return signatures[0].params
def test_param_name(self):
p = self.params('''int(''')
# int is defined as: `int(x[, base])`
assert p[0].name == 'x'
assert p[1].name == 'base'
if not is_py33:
p = self.params('''int(''')
# int is defined as: `int(x[, base])`
assert p[0].name == 'x'
assert p[1].name == 'base'
p = self.params('''open(something,''')
assert p[0].name in ['file', 'name']
assert p[1].name == 'mode'