mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
79b79eeab2
commit
daa251ca09
2 changed files with 48 additions and 12 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue