diff options
-rw-r--r-- | psutil/_compat.py | 4 | ||||
-rwxr-xr-x | 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: |