Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| @@ -68,7 +69,8 @@ def test_getspnam_exception(self): | |||
| 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') | |||
| self.assertEqual(str(cm.exception), | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think you can simply delete this assert. What it covers is already handled by catching PermissionError above.
97c8a6d
to
b78a2fd
Compare
|
Thanks @ZackerySpytz for the PR, and @benjaminp for merging it |
|
Sorry, @ZackerySpytz and @benjaminp, I could not cleanly backport this to |
(cherry picked from commit b03c2c5)
(cherry picked from commit b03c2c5)
|
@benjaminp Thanks for the merge. I've created backport PRs for 3.7 (#9094) and 3.6 (#9096). These versions lack |
https://bugs.python.org/issue34594