mirror of
https://gitlab.freedesktop.org/upower/power-profiles-daemon.git
synced 2026-05-07 13:08:07 +02:00
integration-test: Close the polkitd stdout before killing polkitd
Without this we end up leaking the fd as python warns, so let's do it.
This commit is contained in:
parent
7c2619a13d
commit
3633439e71
1 changed files with 2 additions and 1 deletions
3
tests/integration-test.py
Executable file → Normal file
3
tests/integration-test.py
Executable file → Normal file
|
|
@ -129,12 +129,13 @@ class Tests(dbusmock.DBusTestCase):
|
|||
self.stop_daemon()
|
||||
|
||||
if self.polkitd:
|
||||
self.polkitd.stdout.close()
|
||||
try:
|
||||
self.polkitd.kill()
|
||||
except OSError:
|
||||
pass
|
||||
self.polkitd.wait()
|
||||
self.polkitd = None
|
||||
|
||||
self.obj_polkit = None
|
||||
|
||||
del self.tp_acpi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue