diff options
Diffstat (limited to 'psutil/tests/__init__.py')
-rw-r--r-- | psutil/tests/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/tests/__init__.py b/psutil/tests/__init__.py index e3766eea..cdc8b671 100644 --- a/psutil/tests/__init__.py +++ b/psutil/tests/__init__.py @@ -248,7 +248,7 @@ def _get_py_exe(): # Let's use the base python in this case. base = getattr(sys, "_base_executable", None) if WINDOWS and sys.version_info >= (3, 7) and base is not None: - # We need to set __PYVENV_LAUNCHER__ to sys.executable for the + # We need to set __PYVENV_LAUNCHER__ to sys.executable for the # base python executable to know about the environment. env["__PYVENV_LAUNCHER__"] = sys.executable return base, env @@ -1737,7 +1737,7 @@ def import_module_by_path(path): def warn(msg): """Raise a warning msg.""" - warnings.warn(msg, UserWarning) + warnings.warn(msg, UserWarning, stacklevel=2) def is_namedtuple(x): |