[Python-checkins] cpython: Issue #20069: Fixed test_os on Solaris: error message is platform depended.

serhiy.storchaka python-checkins at python.org
Mon Feb 16 07:37:36 CET 2015


https://hg.python.org/cpython/rev/4cea99f51bfe
changeset:   94648:4cea99f51bfe
parent:      94646:964753cf09de
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Feb 16 08:35:18 2015 +0200
summary:
  Issue #20069: Fixed test_os on Solaris: error message is platform depended.

files:
  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
--- a/Lib/test/test_os.py
+++ b/Lib/test/test_os.py
@@ -1075,7 +1075,7 @@
     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)
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list