summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-03-30 15:34:24 +0200
committerThomas Haller <thaller@redhat.com>2023-03-30 15:35:22 +0200
commitd533072962a494e701cdb81954c3cd52bd805eca (patch)
treedbeeaac8e82d861db2d67cf1e9a6ac1f0155c9a0
parenta9558231cf8cdf5826829bc77a93b914b0d1fd79 (diff)
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')
-rwxr-xr-xsrc/tests/client/test-client.py1
1 files changed, 1 insertions, 0 deletions
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()