(self)
| 2066 | @unittest.skipUnless(not root_in_posix and len(all_users) > 1, |
| 2067 | "test needs non-root account and more than one user") |
| 2068 | def test_chown_without_permission(self): |
| 2069 | uid_1, uid_2 = all_users[:2] |
| 2070 | gid = os.stat(os_helper.TESTFN).st_gid |
| 2071 | with self.assertRaises(PermissionError): |
| 2072 | os.chown(os_helper.TESTFN, uid_1, gid) |
| 2073 | os.chown(os_helper.TESTFN, uid_2, gid) |
| 2074 | |
| 2075 | @classmethod |
| 2076 | def tearDownClass(cls): |
nothing calls this directly
no test coverage detected