diff --git a/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py b/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py index 36a971be684..3793d20d28e 100644 --- a/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py +++ b/src/python/grpcio_tests/tests/unit/_contextvars_propagation_test.py @@ -17,7 +17,7 @@ import contextlib import logging import os import queue -import sys +import tempfile import threading import unittest @@ -28,7 +28,7 @@ from tests.unit import test_common _SERVICE_NAME = "test" _UNARY_UNARY = "UnaryUnary" _REQUEST = b"0000" -_UDS_PATH = "/tmp/grpc_fullstack_test.sock" +_UDS_PATH = os.path.join(tempfile.mkdtemp(), "grpc_fullstack_test.sock") def _unary_unary_handler(request, context):