diff --git a/Lib/test/test_cmd_line.py b/Lib/test/test_cmd_line.py index 3dcb70625589f0d..e5566b1af3ad5a5 100644 --- a/Lib/test/test_cmd_line.py +++ b/Lib/test/test_cmd_line.py @@ -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"),