Skip to content

Conversation

@ZackerySpytz
Copy link
Contributor

@ZackerySpytz ZackerySpytz commented Sep 6, 2018

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),
Copy link
Contributor

Choose a reason for 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.

@ZackerySpytz ZackerySpytz force-pushed the bpo-34594-errno-value-tests branch from 97c8a6d to b78a2fd Compare September 6, 2018 07:14
@benjaminp benjaminp merged commit b03c2c5 into python:master Sep 6, 2018
@miss-islington
Copy link
Contributor

Thanks @ZackerySpytz for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @ZackerySpytz and @benjaminp, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker b03c2c51909e3b5b5966d86a2829b5ddf2d496aa 3.7

ZackerySpytz added a commit to ZackerySpytz/cpython that referenced this pull request Sep 7, 2018
ZackerySpytz added a commit to ZackerySpytz/cpython that referenced this pull request Sep 7, 2018
@ZackerySpytz
Copy link
Contributor Author

@benjaminp Thanks for the merge. I've created backport PRs for 3.7 (#9094) and 3.6 (#9096). These versions lack test_tabnanny.py, so the backports only include test_spwd.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants