mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-17 22:51:25 +08:00
Replace comparison with None with equality operator
This commit is contained in:
1 parent
8cf708d0d4
commit
5755fcb900
1 file changed
+2
-2
@@ -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