summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pwd.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-23 20:40:36 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-23 20:40:36 (GMT)
commit01d9a775fae9f09dc185d2a6d4790adafc303a25 (patch)
tree7733199e543f37cc7f153750de1fea5c5ddfec5f /Lib/test/test_pwd.py
parent4d7fc3c5ac0d09a83a02cc35788ea1b806866ad9 (diff)
downloadcpython-01d9a775fae9f09dc185d2a6d4790adafc303a25.zip
cpython-01d9a775fae9f09dc185d2a6d4790adafc303a25.tar.gz
cpython-01d9a775fae9f09dc185d2a6d4790adafc303a25.tar.bz2
group ids and user ids can be longs now (#17531)
Diffstat (limited to 'Lib/test/test_pwd.py')
-rw-r--r--Lib/test/test_pwd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pwd.py b/Lib/test/test_pwd.py
index ce8b8b3..696161a 100644
--- a/Lib/test/test_pwd.py
+++ b/Lib/test/test_pwd.py
@@ -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)