diff options
Diffstat (limited to 'psutil/tests/test_misc.py')
-rwxr-xr-x | psutil/tests/test_misc.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py index 70f6a37e..323c5406 100755 --- a/psutil/tests/test_misc.py +++ b/psutil/tests/test_misc.py @@ -17,7 +17,6 @@ import os import pickle import socket import stat -import sys from psutil import LINUX from psutil import POSIX @@ -50,9 +49,6 @@ import psutil import psutil.tests -PYTHON_39 = sys.version_info[:2] == (3, 9) - - # =================================================================== # --- Misc / generic tests. # =================================================================== @@ -414,7 +410,7 @@ class TestMisc(PsutilTestCase): msg = f.getvalue() assert msg.startswith("psutil-debug"), msg self.assertIn("hello", msg) - self.assertIn(__file__, msg) + self.assertIn(__file__.replace('.pyc', '.py'), msg) # supposed to use repr(exc) with redirect_stderr(StringIO()) as f: |