Kaydet (Commit) 18d7dff1 authored tarafından Zackery Spytz's avatar Zackery Spytz Kaydeden (comit) Benjamin Peterson

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

(cherry picked from commit b03c2c51)
üst 854b7409
......@@ -67,8 +67,6 @@ class TestSpwdNonRoot(unittest.TestCase):
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__":
......
Fix usage of hardcoded ``errno`` values in the tests.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment