File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
ddtrace/internal/telemetry Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ def _fork_writer(self):
604
604
atexit .unregister (self .stop )
605
605
self .stop (join = False )
606
606
607
- # Enable writer service in child process to avoid interpeter shutdown
607
+ # Enable writer service in child process to avoid interpreter shutdown
608
608
# error in Python 3.12
609
609
if sys .version_info >= (3 , 12 ):
610
610
self .enable ()
Original file line number Diff line number Diff line change @@ -359,7 +359,17 @@ def test_concurrent_futures_with_gevent():
359
359
import os
360
360
import sys
361
361
362
- pid = os .fork ()
362
+ # Temporarily suppress warnings for Python 3.12 as os.fork() will generate a
363
+ # DeprecationWarning. See https://github.com/python/cpython/pull/100229/
364
+ if sys .version_info >= (3 , 12 ):
365
+ import warnings
366
+
367
+ with warnings .catch_warnings ():
368
+ warnings .simplefilter ("ignore" )
369
+ pid = os .fork ()
370
+ else :
371
+ pid = os .fork ()
372
+
363
373
if pid == 0 :
364
374
from gevent import monkey
365
375
You can’t perform that action at this time.
0 commit comments