From fe82149dd697c1402045967973304b774e547546 Mon Sep 17 00:00:00 2001 From: Johannes Maria Frank Date: Fri, 7 Sep 2018 23:22:42 +0100 Subject: [PATCH] Changed jedi completion test script to be an explicit script --- trio/tests/test_exports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trio/tests/test_exports.py b/trio/tests/test_exports.py index 1afd35a0df..9c28715d35 100644 --- a/trio/tests/test_exports.py +++ b/trio/tests/test_exports.py @@ -41,7 +41,7 @@ def test_pylint_sees_all_non_underscore_symbols_in_namespace(): def test_jedi_sees_all_completions(): # Test the jedi completion library get all in dir(trio) try: - script = jedi.Script(path=trio.__file__) + script = jedi.Script("import trio; trio.") completions = script.completions() trio_set = set([symbol for symbol in dir(trio) if symbol[:2] != '__']) jedi_set = set([cmp.name for cmp in completions])