mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 16:20:13 +08:00
fix test case for python3.3
This commit is contained in:
1 parent
88af0ad7d7
commit
56206a1ad8
3 files changed
+16
-8
No files matched your search
@@ -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'
|
||||
Reference in new issue
Block a user