mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Fix a rb byte literal test
This commit is contained in:
@@ -26,13 +26,9 @@ def test_f_strings(Script, environment):
|
|||||||
assert _infer_literal(Script, 'rF"{asdf} "', is_fstring=True) == ''
|
assert _infer_literal(Script, 'rF"{asdf} "', is_fstring=True) == ''
|
||||||
|
|
||||||
|
|
||||||
def test_rb_strings(Script, environment):
|
def test_rb_strings(Script, environment, skip_python2):
|
||||||
assert _infer_literal(Script, 'br"asdf"') == b'asdf'
|
assert _infer_literal(Script, 'x = br"asdf"; x') == b'asdf'
|
||||||
obj = _infer_literal(Script, 'rb"asdf"')
|
assert _infer_literal(Script, 'x = rb"asdf"; x') == b'asdf'
|
||||||
|
|
||||||
# rb is not valid in Python 2. Due to error recovery we just get a
|
|
||||||
# string.
|
|
||||||
assert obj == b'asdf'
|
|
||||||
|
|
||||||
|
|
||||||
def test_thousand_separators(Script, environment):
|
def test_thousand_separators(Script, environment):
|
||||||
|
|||||||
Reference in New Issue
Block a user