]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-45020: Don't test IDLE with frozen module. (GH-28344)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Sep 2021 07:34:19 +0000 (00:34 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Sep 2021 07:34:19 +0000 (00:34 -0700)
Otherwise, test would need special import.
(cherry picked from commit 369bf949ccbb689cd4638b29b4c0c12db79b927c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/idle_test/test_query.py

index e968862688b95ea22fa45d3e2cb5b55fd99cf8b8..41905111b7a730859756a075485279ca58ced204 100644 (file)
@@ -136,8 +136,8 @@ class ModuleNameTest(unittest.TestCase):
         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'], '')