Skip to content

Commit

Permalink
Remove Android get_terminal_size monkey patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsmith committed Jan 10, 2024
1 parent 090478e commit bf2efcd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions testbed/tests/testbed.py
@@ -1,4 +1,3 @@
import errno
import os
import sys
import tempfile
Expand Down Expand Up @@ -108,15 +107,6 @@ def run_tests(app, cov, args, report_coverage, run_slow):
"win32": "toga_winforms",
}.get(sys.platform)

if toga_backend == "toga_android":
# Prevent the log being cluttered with "avc: denied" messages
# (https://github.com/beeware/toga/issues/1962).
def get_terminal_size(*args, **kwargs):
error = errno.ENOTTY
raise OSError(error, os.strerror(error))

os.get_terminal_size = get_terminal_size

# Start coverage tracking.
# This needs to happen in the main thread, before the app has been created
cov = coverage.Coverage(
Expand Down

0 comments on commit bf2efcd

Please sign in to comment.