mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
group ids and user ids can be longs now (#17531)
This commit is contained in:
parent
4d7fc3c5ac
commit
01d9a775fa
3 changed files with 5 additions and 4 deletions
|
|
@ -16,7 +16,7 @@ class GroupDatabaseTestCase(unittest.TestCase):
|
|||
self.assertEqual(value[1], value.gr_passwd)
|
||||
self.assertIsInstance(value.gr_passwd, basestring)
|
||||
self.assertEqual(value[2], value.gr_gid)
|
||||
self.assertIsInstance(value.gr_gid, int)
|
||||
self.assertIsInstance(value.gr_gid, (long, int))
|
||||
self.assertEqual(value[3], value.gr_mem)
|
||||
self.assertIsInstance(value.gr_mem, list)
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ class PwdTest(unittest.TestCase):
|
|||
self.assertEqual(e[1], e.pw_passwd)
|
||||
self.assertIsInstance(e.pw_passwd, basestring)
|
||||
self.assertEqual(e[2], e.pw_uid)
|
||||
self.assertIsInstance(e.pw_uid, int)
|
||||
self.assertIsInstance(e.pw_uid, (int, long))
|
||||
self.assertEqual(e[3], e.pw_gid)
|
||||
self.assertIsInstance(e.pw_gid, int)
|
||||
self.assertIsInstance(e.pw_gid, (int, long))
|
||||
self.assertEqual(e[4], e.pw_gecos)
|
||||
self.assertIsInstance(e.pw_gecos, basestring)
|
||||
self.assertEqual(e[5], e.pw_dir)
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ What's New in Python 2.7.4?
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #17531: Return group and user ids as int instead long when possible.
|
||||
- Issue #17531: Fix tests that thought group and user ids were always the int
|
||||
type.
|
||||
|
||||
|
||||
What's New in Python 2.7.4 release candidate 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue