Skip to content

Commit

Permalink
Merge pull request #2336 from mhsmith/chaquopy-15.0.1
Browse files Browse the repository at this point in the history
Remove Android get_terminal_size monkey patch
  • Loading branch information
freakboy3742 committed Jan 11, 2024
2 parents 65a4360 + 447a738 commit fd71291
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions changes/2336.misc.rst
@@ -0,0 +1 @@
Remove Android get_terminal_size monkey patch
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 fd71291

Please sign in to comment.