Commit 30f913f
committed
tests: open bounce fixture files in binary mode for Python 3
email.message_from_file() in Python 3 opens files as text with the
system encoding (UTF-8). Some bounce fixture files contain Latin-1
bytes, causing UnicodeDecodeError. Use binary mode with
email.message_from_binary_file() instead.1 parent 7735717 commit 30f913f
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments