Re: [PATCH] selftests: tpm2: Implement class desstructor to close file descriptor

From: Stefan Berger
Date: Tue Sep 20 2022 - 09:15:28 EST




On 9/20/22 00:31, Jarkko Sakkinen wrote:


test_flush_context (tpm2_tests.SpaceTest) ... \
/usr/lib64/python3.6/unittest/case.py:605: ResourceWarning: \
unclosed file <_io.FileIO name='/dev/tpmrm0' mode='rb+' closefd=True>

I don't recall seeing this. Does this happen on every test case?

No, only on that one test case.

Stefan