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,6 +538,7 @@ class Editor:
|
||||||
self.quit()
|
self.quit()
|
||||||
|
|
||||||
def ring_bell(self):
|
def ring_bell(self):
|
||||||
|
if "unittest" not in sys.modules:
|
||||||
print("\a", end="")
|
print("\a", end="")
|
||||||
|
|
||||||
def undo(self):
|
def undo(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue