mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 09:30:31 +01:00
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:
parent
a9558231cf
commit
d533072962
1 changed files with 1 additions and 0 deletions
|
|
@ -2181,6 +2181,7 @@ class TestNmCloudSetup(TestNmClient):
|
|||
func(self)
|
||||
self._nm_test_post()
|
||||
|
||||
p.stdin.close()
|
||||
p.terminate()
|
||||
p.wait()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue