[Python-checkins] bpo-45020: Don't test IDLE with frozen module. (GH-28344)

miss-islington webhook-mailer at python.org
Wed Sep 15 03:33:41 EDT 2021


https://github.com/python/cpython/commit/8a9396cf1d9e1ce558841095e1ce0d3c23b7a8aa
commit: 8a9396cf1d9e1ce558841095e1ce0d3c23b7a8aa
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-09-15T00:33:32-07:00
summary:

bpo-45020: Don't test IDLE with frozen module. (GH-28344)


Otherwise, test would need special import.
(cherry picked from commit 369bf949ccbb689cd4638b29b4c0c12db79b927c)

Co-authored-by: Terry Jan Reedy <tjreedy at udel.edu>

files:
M Lib/idlelib/idle_test/test_query.py

diff --git a/Lib/idlelib/idle_test/test_query.py b/Lib/idlelib/idle_test/test_query.py
index e968862688b95..41905111b7a73 100644
--- a/Lib/idlelib/idle_test/test_query.py
+++ b/Lib/idlelib/idle_test/test_query.py
@@ -136,8 +136,8 @@ def test_good_module_name(self):
         dialog = self.Dummy_ModuleName('idlelib')
         self.assertTrue(dialog.entry_ok().endswith('__init__.py'))
         self.assertEqual(dialog.entry_error['text'], '')
-        dialog = self.Dummy_ModuleName('os.path')
-        self.assertTrue(dialog.entry_ok().endswith('path.py'))
+        dialog = self.Dummy_ModuleName('idlelib.idle')
+        self.assertTrue(dialog.entry_ok().endswith('idle.py'))
         self.assertEqual(dialog.entry_error['text'], '')
 
 



More information about the Python-checkins mailing list