From 3ff55a815559c91cfd8a7573e63ea6c3b7124484 Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 10 Aug 2016 23:44:54 -0400 Subject: Issue #27732: Silence test_idle with dummy bell functions. --- Lib/idlelib/idle_test/test_autoexpand.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/idlelib/idle_test/test_autoexpand.py') diff --git a/Lib/idlelib/idle_test/test_autoexpand.py b/Lib/idlelib/idle_test/test_autoexpand.py index 5d234dd862..ae8186cdc4 100644 --- a/Lib/idlelib/idle_test/test_autoexpand.py +++ b/Lib/idlelib/idle_test/test_autoexpand.py @@ -22,6 +22,7 @@ class AutoExpandTest(unittest.TestCase): else: cls.text = Text() cls.auto_expand = AutoExpand(Dummy_Editwin(cls.text)) + cls.auto_expand.bell = lambda: None @classmethod def tearDownClass(cls): @@ -137,5 +138,6 @@ class AutoExpandTest(unittest.TestCase): new_state = self.auto_expand.state self.assertNotEqual(initial_state, new_state) + if __name__ == '__main__': unittest.main(verbosity=2) -- cgit v1.2.1