Skip to content

Commit 0d1105f

Browse files
loic-simonpablogsal
authored andcommitted
Don't test with html module either
1 parent 1013912 commit 0d1105f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_pyrepl/test_pyrepl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)