diff --git a/test/smoke.py b/test/smoke.py index c12c5cf..5605fd0 100755 --- a/test/smoke.py +++ b/test/smoke.py @@ -536,7 +536,9 @@ def inferred(server, tmp): with open(path, "w") as f: f.write(INFERRED) found = server.diagnostics_after("textDocument/didOpen", uri, INFERRED) - expect("inferred: the file checks", found == [], json.dumps(found, indent=1)) + # Warnings there are: its functions are not exported, and nothing calls them. + errors = [d for d in found if d["severity"] == 1] + expect("inferred: the file checks", errors == [], json.dumps(errors, indent=1)) def hover(text, needle, offset=1, nth=0): at = position_of(text, needle, nth, offset)