Fix the below exception by adding a close() method to the MockFP:
Exception ignored in: <function _TemporaryFileCloser.del at 0x7f03bd5369d8>
Traceback (most recent call last):
File "/usr/lib64/python3.7/tempfile.py", line 448, in del
self.close()
File "/usr/lib64/python3.7/tempfile.py", line 441, in close
self.file.close()
AttributeError: 'MockFP' object has no attribute 'close'
Fix the below exception by adding a close() method to the MockFP: Exception ignored in: <function _TemporaryFileCloser.del at 0x7f03bd5369d8> Traceback (most recent call last): File "/usr/lib64/python3.7/tempfile.py", line 448, in del self.close() File "/usr/lib64/python3.7/tempfile.py", line 441, in close self.file.close() AttributeError: 'MockFP' object has no attribute 'close'