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:
Marco Trevisan (Treviño) 2024-02-02 13:45:58 +01:00
parent 7c2619a13d
commit 3633439e71

3
tests/integration-test.py Executable file → Normal file
View 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