Skip to content
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
Further formatting improvements
  • Loading branch information
TabLand committed Apr 6, 2023
commit 8bd668d8c7997a8c94ed736aaaea8480080e478d
4 changes: 2 additions & 2 deletions Lib/test/test_mailcap.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def test_unsafe_mailcap_input(self):

with self.assertWarnsRegex(mailcap.UnsafeMailcapInput,
'Refusing to use mailcap with filename.*Use a safe temporary filename.'):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'Refusing to use mailcap with filename.*Use a safe temporary filename.'):
'Refusing to use mailcap with filename.*'
'Use a safe temporary filename.'):

self.assertEqual(mailcap.findmatch(MAILCAPDICT,
"audio/wav", filename="foo*.txt"), (None, None))
unsafe_filename = mailcap.findmatch(MAILCAPDICT,"audio/wav", filename="foo*.txt")
self.assertEqual(unsafe_filename, (None, None))

def _run_cases(self, cases):
for c in cases:
Expand Down