From 3633439e71727cdd42d28923ee4afa450b065219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 2 Feb 2024 13:45:58 +0100 Subject: [PATCH] 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. --- tests/integration-test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100755 => 100644 tests/integration-test.py diff --git a/tests/integration-test.py b/tests/integration-test.py old mode 100755 new mode 100644 index e25e184..79b2c3f --- a/tests/integration-test.py +++ b/tests/integration-test.py @@ -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