Skip to content

Commit 4f78eec

Browse files
Remove the test for gid=-1.
1 parent 6eddc40 commit 4f78eec

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Lib/test/test_grp.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import random
44
import string
5-
import sys
65
import unittest
76
from test.support import import_helper
87

@@ -99,11 +98,6 @@ def test_errors(self):
9998
else:
10099
self.fail('Cannot find non-existent gid')
101100

102-
if sys.platform != 'cygwin':
103-
# -1 shouldn't be a valid gid because it has a special meaning in many
104-
# uid-related functions
105-
self.assertRaises(KeyError, grp.getgrgid, -1)
106-
107101

108102
if __name__ == "__main__":
109103
unittest.main()

0 commit comments

Comments
 (0)