From d533072962a494e701cdb81954c3cd52bd805eca Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 30 Mar 2023 15:34:24 +0200 Subject: [PATCH] client/tests: close process stdin in test-python.py to avoid warning about leak test_ec2 (__main__.TestNmCloudSetup.test_ec2) ... /usr/lib64/python3.11/unittest/case.py:579: ResourceWarning: unclosed file <_io.BufferedWriter name=5> if method() is not None: ResourceWarning: Enable tracemalloc to get the object allocation traceback ok Fixes: d89d42bf2317 ('tests/client: test nm-cloud-setup') --- src/tests/client/test-client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py index 84450e2ad3..82c2919963 100755 --- a/src/tests/client/test-client.py +++ b/src/tests/client/test-client.py @@ -2181,6 +2181,7 @@ class TestNmCloudSetup(TestNmClient): func(self) self._nm_test_post() + p.stdin.close() p.terminate() p.wait()