mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Python 2/3 compatibility issues that were not resolved in the latest commit.
This commit is contained in:
@@ -131,4 +131,4 @@ def test_goto_definition_not_multiple():
|
||||
|
||||
def test_usage_description():
|
||||
descs = [u.description for u in api.Script("foo = ''; foo").usages()]
|
||||
assert set(descs) == {"foo = ''", 'foo'}
|
||||
assert set(descs) == set(["foo = ''", 'foo'])
|
||||
|
||||
@@ -44,7 +44,7 @@ class MixinTestFullName(object):
|
||||
class TestFullNameWithGotoDefinitions(MixinTestFullName, TestCase):
|
||||
operation = 'goto_definitions'
|
||||
|
||||
@pytest.mark.skipif('sys.version_info[:2] <= (2, 6)', reason='Python 2.6 also yields None.')
|
||||
@pytest.mark.skipif('sys.version_info[0] < 3', reason='Python 2 also yields None.')
|
||||
def test_tuple_mapping(self):
|
||||
self.check("""
|
||||
import re
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from jedi._compatibility import unicode
|
||||
|
||||
from jedi.evaluate import helpers
|
||||
from jedi.parser import representation as pr
|
||||
from jedi.parser import Parser
|
||||
|
||||
Reference in New Issue
Block a user