[3.7] bpo-34594: Don't hardcode errno values in the tests. (GH-9094)

(cherry picked from commit b03c2c5190)
This commit is contained in:
Zackery Spytz 2018-09-07 10:17:32 -06:00 committed by Benjamin Peterson
parent 854b740910
commit 18d7dff1bb
2 changed files with 1 additions and 2 deletions

View file

@ -67,8 +67,6 @@ def test_getspnam_exception(self):
spwd.getspnam(name)
except KeyError as exc:
self.skipTest("spwd entry %r doesn't exist: %s" % (name, exc))
else:
self.assertEqual(str(cm.exception), '[Errno 13] Permission denied')
if __name__ == "__main__":

View file

@ -0,0 +1 @@
Fix usage of hardcoded ``errno`` values in the tests.