diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-11 03:44:54 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-11 03:44:54 (GMT) |
commit | 3ff55a815559c91cfd8a7573e63ea6c3b7124484 (patch) | |
tree | 18c062df6cfcbee9f33f37ab41b96406c97e7302 /Lib/idlelib/idle_test/test_autoexpand.py | |
parent | 40f70d1c057fb61eb24724950c237cd4b45a8cf5 (diff) | |
download | cpython-3ff55a815559c91cfd8a7573e63ea6c3b7124484.zip cpython-3ff55a815559c91cfd8a7573e63ea6c3b7124484.tar.gz cpython-3ff55a815559c91cfd8a7573e63ea6c3b7124484.tar.bz2 |
Issue #27732: Silence test_idle with dummy bell functions.
Diffstat (limited to 'Lib/idlelib/idle_test/test_autoexpand.py')
-rw-r--r-- | Lib/idlelib/idle_test/test_autoexpand.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/idlelib/idle_test/test_autoexpand.py b/Lib/idlelib/idle_test/test_autoexpand.py index 5d234dd..ae8186c 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) |