editor: Don't ring bell during tests
This commit is contained in:
parent
38706e89d4
commit
4dc97d0b9a
1 changed files with 2 additions and 1 deletions
|
|
@ -538,7 +538,8 @@ class Editor:
|
|||
self.quit()
|
||||
|
||||
def ring_bell(self):
|
||||
print("\a", end="")
|
||||
if "unittest" not in sys.modules:
|
||||
print("\a", end="")
|
||||
|
||||
def undo(self):
|
||||
self.text_widget[:], self._cursor_x, self._cursor_y = self.history.pop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue