diff --git a/glance/tests/functional/v1/test_multiprocessing.py b/glance/tests/functional/v1/test_multiprocessing.py index e63b72047b..f6eeb15d71 100644 --- a/glance/tests/functional/v1/test_multiprocessing.py +++ b/glance/tests/functional/v1/test_multiprocessing.py @@ -45,7 +45,7 @@ class TestMultiprocessing(functional.FunctionalTest): api_pid = self.api_server.process_pid process = psutil.Process(api_pid) - children = process.children() + children = process.get_children() pids = [str(child.pid) for child in children] return pids diff --git a/test-requirements.txt b/test-requirements.txt index 986b85339f..9fa52e7f6f 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -14,7 +14,7 @@ sphinx>=1.1.2,<1.2 requests>=1.1 testrepository>=0.0.18 testtools>=0.9.34 -psutil>=1.1.1 +psutil>=1.1.1,<2.0.0 # Optional packages that should be installed when testing MySQL-python