diff options
Diffstat (limited to 'lib/portage/tests/bin/test_doins.py')
-rw-r--r-- | lib/portage/tests/bin/test_doins.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/portage/tests/bin/test_doins.py b/lib/portage/tests/bin/test_doins.py index cb6b3a9dc..75a93ef9b 100644 --- a/lib/portage/tests/bin/test_doins.py +++ b/lib/portage/tests/bin/test_doins.py @@ -16,7 +16,7 @@ exists_in_D = setup_env.exists_in_D class DoIns(setup_env.BinTestCase): def testDoIns(self): - """Tests the most basic senario.""" + """Tests the most basic scenario.""" self.init() try: env = setup_env.env @@ -98,8 +98,8 @@ class DoIns(setup_env.BinTestCase): pass uid = os.lstat(os.path.join(env["S"], "test")).st_uid pw = pwd.getpwuid(uid) - # Similary to testDoInsOptionUid, use user name. - env["INSOPTIONS"] = "-o %s" % pw.pw_name + # Similarly to testDoInsOptionUid, use user name. + env["INSOPTIONS"] = f"-o {pw.pw_name}" doins("test") st = os.lstat(env["D"] + "/test") if st.st_uid != uid: @@ -115,7 +115,7 @@ class DoIns(setup_env.BinTestCase): with open(os.path.join(env["S"], "test"), "w"): pass gid = os.lstat(os.path.join(env["S"], "test")).st_gid - # Similary to testDoInsOptionUid, use gid. + # Similarly to testDoInsOptionUid, use gid. env["INSOPTIONS"] = "-g %d" % gid doins("test") st = os.lstat(env["D"] + "/test") @@ -133,8 +133,8 @@ class DoIns(setup_env.BinTestCase): pass gid = os.lstat(os.path.join(env["S"], "test")).st_gid gr = grp.getgrgid(gid) - # Similary to testDoInsOptionUid, use group name. - env["INSOPTIONS"] = "-g %s" % gr.gr_name + # Similarly to testDoInsOptionUid, use group name. + env["INSOPTIONS"] = f"-g {gr.gr_name}" doins("test") st = os.lstat(env["D"] + "/test") if st.st_gid != gid: |