From 225d6e51d521d5e61b3ee97cb749e8d79664081c Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 17 Mar 2021 14:08:36 +0100 Subject: [PATCH] tests: Close leaked "unclosed file" Fixes warning: /usr/lib64/python3.9/unittest/case.py:550: ResourceWarning: unclosed file <_io.BufferedReader name=10> method() See https://github.com/martinpitt/python-dbusmock/issues/67#issuecomment-800979091 --- tests/integration-test | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration-test b/tests/integration-test index ca9806b..54e4c4d 100755 --- a/tests/integration-test +++ b/tests/integration-test @@ -396,6 +396,7 @@ class Tests(dbusmock.DBusTestCase): upowerd.terminate() upowerd.wait() + upowerd.stdout.close() def test_dytc_performance_driver(self): '''Lenovo DYTC performance driver'''