From e6fe1255ce6b31cc88146ba6dfa0aa90aef028c0 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 27 Jun 2019 12:58:43 +0200 Subject: fix tests --- psutil/_compat.py | 4 +++- psutil/tests/test_misc.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/psutil/_compat.py b/psutil/_compat.py index 41614287..07ab909a 100644 --- a/psutil/_compat.py +++ b/psutil/_compat.py @@ -11,7 +11,9 @@ import os import sys __all__ = ["PY3", "long", "xrange", "unicode", "basestring", "u", "b", - "lru_cache", "which", "get_terminal_size"] + "lru_cache", "which", "get_terminal_size", + "FileNotFoundError", "PermissionError", "ProcessLookupError", + "InterruptedError", "ChildProcessError", "FileExistsError"] PY3 = sys.version_info[0] == 3 diff --git a/psutil/tests/test_misc.py b/psutil/tests/test_misc.py index 4b688288..4e476871 100755 --- a/psutil/tests/test_misc.py +++ b/psutil/tests/test_misc.py @@ -180,7 +180,8 @@ class TestMisc(unittest.TestCase): for name in dir_psutil: if name in ('callable', 'error', 'namedtuple', 'tests', 'long', 'test', 'NUM_CPUS', 'BOOT_TIME', - 'TOTAL_PHYMEM'): + 'TOTAL_PHYMEM', 'PermissionError', + 'ProcessLookupError'): continue if not name.startswith('_'): try: -- cgit v1.2.1