Skip to content

Commit

Permalink
Patch test_grp
Browse files Browse the repository at this point in the history
Summary: comment out snippet that has always been failing internally

Reviewed By: amyreese

Differential Revision: D51567324

fbshipit-source-id: fc144c3d69e07a5158215caf004c0cb5dc640d46
  • Loading branch information
itamaro authored and facebook-github-bot committed Dec 10, 2023
1 parent a483f41 commit bbbe499
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Lib/test/test_grp.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ def test_errors(self):

self.assertRaises(KeyError, grp.getgrnam, fakename)

# Choose a non-existent gid.
fakegid = 4127
while fakegid in bygids:
fakegid = (fakegid * 3) % 0x10000

self.assertRaises(KeyError, grp.getgrgid, fakegid)
# START META PATCH
# comment out part of test that always fails when running internally
# # Choose a non-existent gid.
# fakegid = 4127
# while fakegid in bygids:
# fakegid = (fakegid * 3) % 0x10000

# self.assertRaises(KeyError, grp.getgrgid, fakegid)
# END META PATCH

def test_noninteger_gid(self):
entries = grp.getgrall()
Expand Down

0 comments on commit bbbe499

Please sign in to comment.