elastic / elastic/apm-agent-python

Investigate test_send_remote_failover_sync_non_transport_exception_error unraisable exceptions warning

Aperta
#2,260 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
431
Fork
239
Merge medio
5g 10h
PR unite (30g)
7

Descrizione

Sometimes we have this warning when running tests. I checked that this happens also when running just this test alone.

```
tests/client/client_tests.py::test_send_remote_failover_sync_non_transport_exception_error
/home/rm/src/apm-agent-python/venv313/lib/python3.13/site-packages/_pytest/unraisableexception.py:78: PytestUnraisableExceptionWarning: Exception ignored in:

Traceback (most recent call last):
File "/usr/lib/python3.13/gzip.py", line 362, in close
fileobj.write(self.compress.flush())
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
ValueError: I/O operation on closed file.

warnings.warn(pytest.PytestUnraisableExceptionWarning(msg))
```

In order to see the warning you need to run python 3.13 or python 3.12with } `-X dev`.

This is a followup to #2213

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.