Patch # 1302 by Christian Heimes (with some love from me :-).

The patch fixes the output for profile and cProfile. Another patch from
Alexandre and me added additional calls to the UTF-8 codec.
This commit is contained in:
Guido van Rossum 2007-10-25 23:47:33 +00:00
parent 79b79eeab2
commit daa251ca09
2 changed files with 48 additions and 12 deletions

View file

@ -1119,6 +1119,15 @@ class _ExpectedSkips:
if not os.path.supports_unicode_filenames:
self.expected.add('test_pep277')
# doctest, profile and cProfile tests fail when the codec for the fs
# encoding isn't built in because PyUnicode_Decode() adds two calls
# into Python.
encs = ("utf-8", "latin-1", "ascii", "mbcs", "utf-16", "utf-32")
if sys.getfilesystemencoding().lower() not in encs:
self.expected.add('test_profile')
self.expected.add('test_cProfile')
self.expected.add('test_doctest')
try:
from test import test_socket_ssl
except ImportError: