mirror of
https://github.com/python/cpython.git
synced 2026-04-22 03:41:08 +00:00
[3.7] bpo-34594: Don't hardcode errno values in the tests. (GH-9094)
(cherry picked from commit b03c2c5190)
This commit is contained in:
parent
854b740910
commit
18d7dff1bb
2 changed files with 1 additions and 2 deletions
|
|
@ -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__":
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Fix usage of hardcoded ``errno`` values in the tests.
|
||||
Loading…
Add table
Add a link
Reference in a new issue