Do not import pytest in test util (#20252)

This commit is contained in:
SangBin Cho 2021-11-12 12:09:28 +09:00 committed by GitHub
parent 7500f7d88a
commit e901180a55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,6 @@ from typing import Optional, Any, List, Dict
from contextlib import redirect_stdout, redirect_stderr
import yaml
import logging
import pytest
import tempfile
import grpc
@ -871,6 +870,7 @@ def monitor_memory_usage(print_interval_s: int = 30,
def setup_tls():
"""Sets up required environment variables for tls"""
import pytest
if sys.platform == "darwin":
pytest.skip("Cryptography doesn't install in Mac build pipeline")
cert, key = generate_self_signed_tls_certs()