mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 00:34:49 +02:00
Fix tests with <psutil-2.0
This commit is contained in:
parent
5660b35358
commit
bb5977c8eb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user