Issue #20069: Fixed test_os on Solaris: error message is platform depended.

This commit is contained in:
Serhiy Storchaka 2015-02-16 08:35:18 +02:00
parent a9e2c8ecd6
commit a9e00d13cd
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ class ChownFileTests(unittest.TestCase):
def test_chown_without_permission(self):
uid_1, uid_2 = all_users[:2]
gid = os.stat(support.TESTFN).st_gid
with self.assertRaisesRegex(PermissionError, "Operation not permitted"):
with self.assertRaises(PermissionError):
os.chown(support.TESTFN, uid_1, gid)
os.chown(support.TESTFN, uid_2, gid)