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: d89d42bf23 ('tests/client: test nm-cloud-setup')
This commit is contained in:
Thomas Haller 2023-03-30 15:34:24 +02:00
parent a9558231cf
commit d533072962
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -2181,6 +2181,7 @@ class TestNmCloudSetup(TestNmClient):
func(self)
self._nm_test_post()
p.stdin.close()
p.terminate()
p.wait()