mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Fix none test for Python 2
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
Test of keywords and ``jedi.keywords``
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
def test_goto_assignments_keyword(Script):
|
||||
"""
|
||||
@@ -48,7 +50,11 @@ def test_keyword_attributes(Script):
|
||||
assert def_.type == 'keyword'
|
||||
|
||||
|
||||
def test_none_keyword(Script):
|
||||
def test_none_keyword(Script, environment):
|
||||
if environment.version_info.major == 2:
|
||||
# Just don't care about Python 2 anymore, it's almost gone.
|
||||
pytest.skip()
|
||||
|
||||
none, = Script('None').completions()
|
||||
assert not none.docstring()
|
||||
assert none.name == 'None'
|
||||
|
||||
Reference in New Issue
Block a user