Skip to content
New issue

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

bpo-30978: str.format_map() now passes key lookup exceptions through. #2790

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test_re.
serhiy-storchaka committed Jul 21, 2017
commit b8930765cd8e9b617b3244c4235f68970b091522
2 changes: 1 addition & 1 deletion Lib/test/test_re.py
Original file line number Diff line number Diff line change
@@ -468,7 +468,7 @@ def test_match_getitem(self):
m[(0,)]
with self.assertRaisesRegex(IndexError, 'no such group'):
m[(0, 1)]
with self.assertRaisesRegex(KeyError, 'a2'):
with self.assertRaisesRegex(IndexError, 'no such group'):
'a1={a2}'.format_map(m)

m = pat.match('ac')