forked from VimPlug/jedi
Fix python 2.7 tests.
This commit is contained in:
@@ -23,12 +23,12 @@ def assert_params(param_string, **wanted_dct):
|
||||
|
||||
|
||||
def test_split_params_with_separation_star():
|
||||
assert_params('x, y=1, *, z=3', x=None, y='1', z='3')
|
||||
assert_params('*, x', x=None)
|
||||
assert_params('*')
|
||||
assert_params(u'x, y=1, *, z=3', x=None, y='1', z='3')
|
||||
assert_params(u'*, x', x=None)
|
||||
assert_params(u'*')
|
||||
|
||||
|
||||
def test_split_params_with_stars():
|
||||
assert_params('x, *args', x=None, args=None)
|
||||
assert_params('**kwargs', kwargs=None)
|
||||
assert_params('*args, **kwargs', args=None, kwargs=None)
|
||||
assert_params(u'x, *args', x=None, args=None)
|
||||
assert_params(u'**kwargs', kwargs=None)
|
||||
assert_params(u'*args, **kwargs', args=None, kwargs=None)
|
||||
|
||||
@@ -216,5 +216,5 @@ def test_backslash_dos_style():
|
||||
|
||||
|
||||
def test_started_lambda_stmt():
|
||||
p = ParserWithRecovery(load_grammar(), 'lambda a, b: a i')
|
||||
p = ParserWithRecovery(load_grammar(), u'lambda a, b: a i')
|
||||
assert p.get_parsed_node().children[0].type == 'error_node'
|
||||
|
||||
Reference in New Issue
Block a user