Skip to content

Commit

Permalink
Ensure importtime=2 test import is guaranteed to be cached
Browse files Browse the repository at this point in the history
  • Loading branch information
noahbkim committed May 7, 2024
1 parent 5261fb7 commit 02e8bde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_cmd_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ def test_import_time(self):
res.err.decode("utf-8"),
r"import time: \s*\d+ | \s*\d+ | \s*os"
)
code = "import os; import os"
res = assert_python_ok('-X', 'importtime=2', '-c', code)
self.assertRegex(
res.err.decode("utf-8"),
Expand Down

0 comments on commit 02e8bde

Please sign in to comment.