mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Merged revisions 78546 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78546 | gregory.p.smith | 2010-02-28 21:43:43 -0800 (Sun, 28 Feb 2010) | 3 lines Fixes issue #7999: os.setreuid() and os.setregid() would refuse to accept a -1 parameter on some platforms such as OS X. ........
This commit is contained in:
parent
1a530917e2
commit
c78d79ce30
3 changed files with 25 additions and 6 deletions
|
@ -738,6 +738,7 @@ if sys.platform != 'win32':
|
|||
self.assertRaises(os.error, os.setreuid, 0, 0)
|
||||
self.assertRaises(OverflowError, os.setreuid, 1<<32, 0)
|
||||
self.assertRaises(OverflowError, os.setreuid, 0, 1<<32)
|
||||
os.setreuid(-1, -1) # Does nothing, but it needs to accept -1
|
||||
|
||||
if hasattr(os, 'setregid'):
|
||||
def test_setregid(self):
|
||||
|
@ -745,6 +746,7 @@ if sys.platform != 'win32':
|
|||
self.assertRaises(os.error, os.setregid, 0, 0)
|
||||
self.assertRaises(OverflowError, os.setregid, 1<<32, 0)
|
||||
self.assertRaises(OverflowError, os.setregid, 0, 1<<32)
|
||||
os.setregid(-1, -1) # Does nothing, but it needs to accept -1
|
||||
|
||||
@unittest.skipIf(sys.platform == 'darwin', "tests don't apply to OS X")
|
||||
class Pep383Tests(unittest.TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue