Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d3584831 authored by Josh Gao's avatar Josh Gao Committed by android-build-merger
Browse files

Merge "test_adb.py: silence ResourceWarning." am: f2eaefe3 am: 6887e955

am: 59fecabc

Change-Id: I63b25e99e46a60e89dc5a79f189a437f63452a49
parents 946829e3 59fecabc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import sys
import threading
import time
import unittest
import warnings


@contextlib.contextmanager
@@ -229,6 +230,10 @@ class ServerTest(unittest.TestCase):
                                stderr=subprocess.STDOUT)

        try:
            # We get warnings for unclosed files for the subprocess's pipes,
            # and it's somewhat cumbersome to close them, so just ignore this.
            warnings.simplefilter("ignore", ResourceWarning)

            # Run the adb client and have it start the adb server.
            proc = subprocess.Popen(["adb", "-P", str(port), "start-server"],
                                    stdin=subprocess.PIPE,