Skip to content

Commit 09f5b04

Browse files
authored
First (#44282)
1 parent e86dde2 commit 09f5b04

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

eng/tools/azure-sdk-tools/devtools_testutils/envvariable_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _set_mgmt_settings_real_values(self):
6868
user_auth = use_pwsh == "true" or use_cli == "true" or use_azd == "true"
6969
if not user_auth:
7070
# All variables are required for service principal authentication
71-
_logger.warn(
71+
_logger.warning(
7272
"Environment variables for service principal credentials are not all set. "
7373
"Please either set the variables or request user-based authentication by setting "
7474
"an 'AZURE_TEST_USE_X_AUTH' environment variable to 'true'. See "

eng/tools/azure-sdk-tools/devtools_testutils/preparers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import contextlib
77
import functools
88
import logging
9+
import inspect
910
from collections import namedtuple
1011
from threading import Lock
1112

@@ -145,7 +146,7 @@ def _preparer_wrapper(test_class_instance, **kwargs):
145146
except ImportError:
146147
fn(test_class_instance, **trimmed_kwargs)
147148
else:
148-
if asyncio.iscoroutinefunction(fn):
149+
if inspect.iscoroutinefunction(fn):
149150
asyncio.run(fn(test_class_instance, **trimmed_kwargs))
150151
else:
151152
fn(test_class_instance, **trimmed_kwargs)

0 commit comments

Comments
 (0)