diff --git a/Lib/test/test_idle.py b/Lib/test/test_idle.py index 79d18a809ba..540f7d20643 100644 --- a/Lib/test/test_idle.py +++ b/Lib/test/test_idle.py @@ -10,7 +10,7 @@ if use_resources and 'gui' in use_resources: try: root = tk.Tk() root.destroy() - except tk.TclError: + except TclError: while True: use_resources.delete('gui') if 'gui' not in use_resources: