Threading issue in FDLogging - warning only
I have pretty often this warning in my tests (lately with throughput and DHCP tests).
The tests are running ok, but it seems FDLogging.__del__()
is having some issue.
tests/network/test_throughput.py::TestSwitching::test_TCP
/home/jamiks/.virtualenvs/nsfarm/lib/python3.8/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in: <function FDLogging.__del__ at 0x7fb67f363d30>
Traceback (most recent call last):
File "/home/jamiks/git/nsfarm/nsfarm/cli.py", line 309, in __del__
self.close()
File "/home/jamiks/git/nsfarm/nsfarm/cli.py", line 306, in close
fcntl.fcntl(self._fileno, fcntl.F_SETFL, self._orig_filestatus)
OSError: [Errno 9] Bad file descriptor
warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
-- Docs: https://docs.pytest.org/en/stable/warnings.html