diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-06-27 12:58:43 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-06-27 12:58:43 +0200 |
commit | e6fe1255ce6b31cc88146ba6dfa0aa90aef028c0 (patch) | |
tree | 053e13469d3959524d0cdb556aafe55ba753256c | |
parent | 0c41d9f765d2d80680e0a15eed1007b034531ece (diff) | |
download | psutil-fs-exceptions.tar.gz |
fix testsfs-exceptions
-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: |