From 628f04490445bad627a42cc7617a2eb6468b0905 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 15 Feb 2023 14:46:16 +0100 Subject: [PATCH] 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 --- bindings/python/tests/tests_line_request.py | 1 + 1 file changed, 1 insertion(+) 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): -- 2.30.2