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

terryjreedy webhook-mailer at python.org
Wed Sep 15 03:08:55 EDT 2021


https://github.com/python/cpython/commit/369bf949ccbb689cd4638b29b4c0c12db79b927c
commit: 369bf949ccbb689cd4638b29b4c0c12db79b927c
branch: main
author: Terry Jan Reedy <tjreedy at udel.edu>
committer: terryjreedy <tjreedy at udel.edu>
date: 2021-09-15T03:08:44-04:00
summary:

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

Otherwise, test would need special import.

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