Fix tests with <psutil-2.0

This commit is contained in:
ZyX 2014-09-21 15:11:01 +04:00
parent 5660b35358
commit bb5977c8eb
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ class TestEnv(TestCommon):
def username(self):
return 'def'
if hasattr(common, 'psutil') and not callable(common.psutil.Process.username):
if hasattr(self.module, 'psutil') and not callable(self.module.psutil.Process.username):
username = property(username)
new_psutil = new_module('psutil', Process=Process)