From 50b58a314eded01d4ee7533de466c70bf70afd78 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 3 Aug 2018 01:34:08 +0200 Subject: [PATCH] Fix a test condition --- test/test_plugin/test_stub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_plugin/test_stub.py b/test/test_plugin/test_stub.py index d2b9084c..89377b92 100644 --- a/test/test_plugin/test_stub.py +++ b/test/test_plugin/test_stub.py @@ -73,4 +73,4 @@ def test_method(Script): def_, = Script(code).goto_definitions() context = def_._name._context assert isinstance(context, BoundMethod), context - assert isinstance(context.function, typeshed.ClassStubContext), context + assert isinstance(context._function, typeshed.FunctionStubContext), context