Skip to content

Commit cc7cbf8

Browse files
committed
Fix tests
1 parent b1809d4 commit cc7cbf8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Src/StdLib/Lib/test/test_mailcap.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ def test_subst(self):
101101
(["", "audio/*", "foo.txt"], ""),
102102
(["echo foo", "audio/*", "foo.txt"], "echo foo"),
103103
(["echo %s", "audio/*", "foo.txt"], "echo foo.txt"),
104-
(["echo %t", "audio/*", "foo.txt"], "echo audio/*"),
105-
(["echo \%t", "audio/*", "foo.txt"], "echo %t"),
104+
(["echo %t", "audio/*", "foo.txt"], None),
105+
(["echo %t", "audio/wav", "foo.txt"], "echo audio/wav"),
106+
(["echo \\%t", "audio/*", "foo.txt"], "echo %t"),
106107
(["echo foo", "audio/*", "foo.txt", plist], "echo foo"),
107108
(["echo %{total}", "audio/*", "foo.txt", plist], "echo 3")
108109
]
@@ -183,7 +184,10 @@ def test_findmatch(self):
183184
('"An audio fragment"', audio_basic_entry)),
184185
([c, "audio/*"],
185186
{"filename": fname},
186-
("/usr/local/bin/showaudio audio/*", audio_entry)),
187+
(None, None)),
188+
([c, "audio/wav"],
189+
{"filename": fname},
190+
("/usr/local/bin/showaudio audio/wav", audio_entry)),
187191
([c, "message/external-body"],
188192
{"plist": plist},
189193
("showexternal /dev/null default john python.org /tmp foo bar", message_entry))

0 commit comments

Comments
 (0)