Skip to content

Commit 7592af8

Browse files
!fixup
1 parent b8fc5f4 commit 7592af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_email/test_headerregistry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def content_type_as_value(self,
249249
folded = args[3] if l>3 else header + decoded + '\n'
250250
# Both rfc2231 test cases with utf-8%E2%80%9D raise warnings,
251251
# clear encoding cache to ensure test isolation.
252-
if 'utf-8%E2%80%9D' in source:
252+
if 'utf-8%E2%80%9D' in source and 'ascii' not in source:
253253
import encodings
254254
encodings._cache.clear()
255255
with self.assertWarns(DeprecationWarning):

0 commit comments

Comments
 (0)