Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
tests: test_flamechart ignores ResourceWarning while it reads stderr, so another test's unclosed file can't become its last line
Gathin236e8615eb0be0
diff --git a/tests/test_flamechart.py b/tests/test_flamechart.pyindex 211c79f7a..5e7557934 100644--- a/tests/test_flamechart.py+++ b/tests/test_flamechart.py@@ -18,6 +18,7 @@ import sqlite3import sysimport tempfileimport unittest+import warningsfrom unittest import mockROOT = Path(__file__).resolve().parents[1]@@ -161,7 +162,9 @@ class ArgumentTest(unittest.TestCase):class OutputArgumentTest(unittest.TestCase):def assert_rejected_before_trace_work(self, argv, out, flag):- with (mock.patch.dict(sys.modules, {"PIL": None, "perfetto": None}),+ # Another test's unclosed file can be finalised mid-call; its ResourceWarning would then be stderr's last line.+ with (warnings.catch_warnings(action="ignore", category=ResourceWarning),+ mock.patch.dict(sys.modules, {"PIL": None, "perfetto": None}),mock.patch.object(flamechart.trace_report, "opener") as opener,mock.patch.object(flamechart.trace_report, "expand") as expand,mock.patch("builtins.__import__", wraps=__import__) as imports,