nsfarm issueshttps://gitlab.nic.cz/turris/nsfarm/-/issues2022-06-06T14:05:49+02:00https://gitlab.nic.cz/turris/nsfarm/-/issues/30Threading issue in FDLogging - warning only2022-06-06T14:05:49+02:00Jan Miksikjan.miksik@nic.czThreading issue in FDLogging - warning onlyI 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.
```python
tests/network/test_throughput.py::TestSwitching::test_TCP...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.
```python
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
```