Skip to content

Commit da6cf7f

Browse files
committed
Don't test with html module either
1 parent 935e3fd commit da6cf7f

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
@@ -1476,7 +1476,7 @@ def test_suggestions_and_messages(self) -> None:
14761476
(dir / "pack" / "__init__.py").write_text("foo = 1; bar = 2;")
14771477
(dir / "pack" / "bar.py").touch()
14781478
sys.modules.pop("graphlib", None) # test modules may have been imported by previous tests
1479-
sys.modules.pop("html.entities", None)
1479+
sys.modules.pop("string.templatelib", None)
14801480
with patch.object(sys, "path", [_dir, *sys.path]):
14811481
pkgutil.get_importer(_dir).invalidate_caches()
14821482
cases = (
@@ -1501,7 +1501,7 @@ def test_suggestions_and_messages(self) -> None:
15011501
("from pack.bar import ", ([], None), set()),
15021502
# stdlib = auto-imported
15031503
("from graphlib import T", (["TopologicalSorter"], None), {"graphlib"}),
1504-
("from html.entities import h", (["html5"], None), {"html", "html.entities"}),
1504+
("from string.templatelib import c", (["convert"], None), {"string.templatelib"}),
15051505
)
15061506
completer = ModuleCompleter()
15071507
for i, (code, expected, expected_imports) in enumerate(cases):

0 commit comments

Comments
 (0)