mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-09 04:48:08 +02:00
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:
parent
4c86f30cda
commit
225d6e51d5
1 changed files with 1 additions and 0 deletions
|
|
@ -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'''
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue