editor: Don't ring bell during tests

This commit is contained in:
Andrew Hamilton 2022-01-13 19:29:27 +10:00
parent 38706e89d4
commit 4dc97d0b9a

View file

@ -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()