mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 06:44:46 +08:00
Nicer usage of py_call within InstanceElement and Python 2.7 compatibility
This commit is contained in:
@@ -6,6 +6,10 @@ import pytest
|
||||
from jedi import Script
|
||||
from jedi._compatibility import is_py26
|
||||
|
||||
# The namedtuple is different for different Python2.7 versions. Some versions
|
||||
# are missing the attribute `_class_template`.
|
||||
pytestmark = pytest.mark.skipif('sys.version_info[0] < 3')
|
||||
|
||||
|
||||
@pytest.mark.parametrize(['letter', 'expected'], [
|
||||
('n', ['name']),
|
||||
|
||||
Reference in New Issue
Block a user