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
This commit is contained in:
Martin Pitt 2021-03-17 14:08:36 +01:00 committed by Bastien Nocera
parent 4c86f30cda
commit 225d6e51d5

View file

@ -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'''