@@ -1569,7 +1569,7 @@ def test_suggestions_and_messages(self) -> None:
15691569 (dir / "pack" / "__init__.py" ).write_text ("foo = 1; bar = 2;" )
15701570 (dir / "pack" / "bar.py" ).touch ()
15711571 sys .modules .pop ("graphlib" , None ) # test modules may have been imported by previous tests
1572- sys .modules .pop ("html.entities " , None )
1572+ sys .modules .pop ("string.templatelib " , None )
15731573 with patch .object (sys , "path" , [_dir , * sys .path ]):
15741574 pkgutil .get_importer (_dir ).invalidate_caches ()
15751575 cases = (
@@ -1594,7 +1594,7 @@ def test_suggestions_and_messages(self) -> None:
15941594 ("from pack.bar import " , ([], None ), set ()),
15951595 # stdlib = auto-imported
15961596 ("from graphlib import T" , (["TopologicalSorter" ], None ), {"graphlib" }),
1597- ("from html.entities import h " , (["html5 " ], None ), {"html" , "html.entities " }),
1597+ ("from string.templatelib import c " , (["convert " ], None ), {"string.templatelib " }),
15981598 )
15991599 completer = ModuleCompleter ()
16001600 for i , (code , expected , expected_imports ) in enumerate (cases ):
0 commit comments