diff options
author | Guido van Rossum <guido@python.org> | 2007-10-25 23:47:33 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-10-25 23:47:33 (GMT) |
commit | daa251ca097e7f7382ed57c10efbbaddad103afb (patch) | |
tree | dab51d755303bbeb616eca1bd2834fb8d2d3f594 /Lib/test/regrtest.py | |
parent | 79b79eeab239f97d2a1374a83799aebc11e9ae7e (diff) | |
download | cpython-daa251ca097e7f7382ed57c10efbbaddad103afb.zip cpython-daa251ca097e7f7382ed57c10efbbaddad103afb.tar.gz cpython-daa251ca097e7f7382ed57c10efbbaddad103afb.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-x | Lib/test/regrtest.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index a98af87..91728ef 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -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: |