mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-05 05:48:47 +08:00
Remove two asserts that were pointless
This commit is contained in:
1 parent
de7b638e6c
commit
4a2ada56e5
1 file changed
-2
@@ -53,7 +53,6 @@ def test_function(Script, environment):
|
||||
def_, = Script(code + '()').goto_definitions()
|
||||
context = def_._name._context
|
||||
assert isinstance(context, TreeInstance)
|
||||
assert isinstance(context.class_context, stub_context.StubClass), context
|
||||
|
||||
def_, = Script('import threading; threading.Thread').goto_definitions()
|
||||
assert isinstance(def_._name._context, ClassContext), def_
|
||||
@@ -77,7 +76,6 @@ def test_instance(Script):
|
||||
def_, = Script('import threading; threading.Thread()').goto_definitions()
|
||||
context = def_._name._context
|
||||
assert isinstance(context, TreeInstance)
|
||||
assert isinstance(context.class_context, stub_context.StubClass), context
|
||||
|
||||
|
||||
def test_class_function(Script):
|
||||
|
||||
Reference in new issue
Block a user