From bed59311946870dc2191eb291f7314e3a6ebb67e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 24 Jul 2019 23:22:26 +0100 Subject: [PATCH] [stream-refactor] remove one more getuser() usage --- tests/su_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/su_test.py b/tests/su_test.py index 447b00fc..320f9cef 100644 --- a/tests/su_test.py +++ b/tests/su_test.py @@ -1,5 +1,4 @@ -import getpass import os import mitogen @@ -67,7 +66,7 @@ class SuTest(testlib.DockerMixin, testlib.TestCase): password='has_sudo_password', ) context = self.router.su(via=ssh, password='rootpassword') - self.assertEquals('root', context.call(getpass.getuser)) + self.assertEquals(0, context.call(os.getuid)) if __name__ == '__main__':