summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-05-25 21:33:11 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-05-25 21:33:11 (GMT)
commit36850456caa30eba02d440c7c36ccdd510625767 (patch)
tree5316a6145bee7a5fa298f77bf7ac3059a5ef4719 /Lib
parentf5bc414334cd6808bbcf329914f322e3d1afbeaa (diff)
downloadcpython-36850456caa30eba02d440c7c36ccdd510625767.zip
cpython-36850456caa30eba02d440c7c36ccdd510625767.tar.gz
cpython-36850456caa30eba02d440c7c36ccdd510625767.tar.bz2
Change test_values so that it compares the lowercasing of group names since getgrall() can return all lowercase names while getgrgid() returns proper casing.
Discovered on Ubuntu 5.04 (custom).
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_grp.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_grp.py b/Lib/test/test_grp.py
index 2c3ab29..08958ba 100755
--- a/Lib/test/test_grp.py
+++ b/Lib/test/test_grp.py
@@ -31,7 +31,10 @@ class GroupDatabaseTestCase(unittest.TestCase):
self.assertEqual(e2.gr_gid, e.gr_gid)
e2 = grp.getgrnam(e.gr_name)
self.check_value(e2)
- self.assertEqual(e2.gr_name, e.gr_name)
+ # There are instances where getgrall() returns group names in
+ # lowercase while getgrgid() returns proper casing.
+ # Discovered on Ubuntu 5.04 (custom).
+ self.assertEqual(e2.gr_name.lower(), e.gr_name.lower())
def test_errors(self):
self.assertRaises(TypeError, grp.getgrgid)