From: Bartosz Golaszewski Date: Wed, 15 Feb 2023 13:46:16 +0000 (+0100) Subject: bindings: python: tests: release the request before removing GPIO sim X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=628f04490445bad627a42cc7617a2eb6468b0905;p=qemu-gpiodev%2Flibgpiod.git bindings: python: tests: release the request before removing GPIO sim One of the test cases doesn't release the request object leading to the following warning in the kernel log: REMOVING GPIOCHIP WITH GPIOS STILL REQUESTED Fix it. Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/python/tests/tests_line_request.py b/bindings/python/tests/tests_line_request.py index 096ec7c..aa84b9a 100644 --- a/bindings/python/tests/tests_line_request.py +++ b/bindings/python/tests/tests_line_request.py @@ -518,6 +518,7 @@ class LineRequestSurvivesParentChip(TestCase): chip.close() self.assertEqual(req.get_values([0]), [Value.INACTIVE]) + req.release() class LineRequestStringRepresentation(TestCase):