You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This avoids issues when debug messages are enabled at runtime, as the module-level import may have been skipped.
Signed-off-by: Steve Dower <steve.dower@microsoft.com>
When the tests enable debug messages, they call this function and pass
True
:psutil/psutil/__init__.py
Lines 2349 to 2355 in dd57b9a
However, if the environment variable wasn't already set, the import of
inspect
was skipped and any attempt to display a debug message will fail.psutil/psutil/_common.py
Lines 46 to 48 in dd57b9a
The import of
inspect
should probably just be done inside the debug function.The text was updated successfully, but these errors were encountered: