Skip to content

Commit 9eeecfd

Browse files
ZackerySpytzbenjaminp
authored andcommitted
[3.6] bpo-34594: Don't hardcode errno values in the tests. (GH-9096)
(cherry picked from commit b03c2c5)
1 parent 23f427a commit 9eeecfd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Lib/test/test_spwd.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ def test_getspnam_exception(self):
6767
spwd.getspnam(name)
6868
except KeyError as exc:
6969
self.skipTest("spwd entry %r doesn't exist: %s" % (name, exc))
70-
else:
71-
self.assertEqual(str(cm.exception), '[Errno 13] Permission denied')
7270

7371

7472
if __name__ == "__main__":
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix usage of hardcoded ``errno`` values in the tests.

0 commit comments

Comments
 (0)