diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-16 06:35:18 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-16 06:35:18 (GMT) |
commit | a9e00d13cd5d547145ab065c166ca2075e06d6bf (patch) | |
tree | 6691060d6056c31d8aeff5aa9463d5d24850d544 /Lib | |
parent | a9e2c8ecd6f332a43d83012db25f685501adc21f (diff) | |
download | cpython-a9e00d13cd5d547145ab065c166ca2075e06d6bf.zip cpython-a9e00d13cd5d547145ab065c166ca2075e06d6bf.tar.gz cpython-a9e00d13cd5d547145ab065c166ca2075e06d6bf.tar.bz2 |
Issue #20069: Fixed test_os on Solaris: error message is platform depended.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_os.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index e28a3db..afa7a4a 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -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) |