mirror of
https://github.com/davidhalter/jedi.git
synced 2026-08-12 19:24:39 +08:00
Replace comparison with None with equality operator
This commit is contained in:
@@ -4,7 +4,7 @@ from jedi import Script
|
|||||||
def test_module_attributes():
|
def test_module_attributes():
|
||||||
def_, = Script('__name__').completions()
|
def_, = Script('__name__').completions()
|
||||||
assert def_.name == '__name__'
|
assert def_.name == '__name__'
|
||||||
assert def_.line == None
|
assert def_.line is None
|
||||||
assert def_.column == None
|
assert def_.column is None
|
||||||
str_, = def_._goto_definitions()
|
str_, = def_._goto_definitions()
|
||||||
assert str_.name == 'str'
|
assert str_.name == 'str'
|
||||||
|
|||||||
Reference in New Issue
Block a user