Disable the cProfile test for now -- it's broken.
This commit is contained in:
parent
c17b35c6b4
commit
014d4a026a
|
@ -1131,13 +1131,17 @@ class _ExpectedSkips:
|
||||||
s = _expectations[sys.platform]
|
s = _expectations[sys.platform]
|
||||||
self.expected = set(s.split())
|
self.expected = set(s.split())
|
||||||
|
|
||||||
|
# These are broken tests, for now skipped on every platform.
|
||||||
|
# XXX Fix these!
|
||||||
|
self.expected.add('test_cProfile')
|
||||||
|
|
||||||
# expected to be skipped on every platform, even Linux
|
# expected to be skipped on every platform, even Linux
|
||||||
if not os.path.supports_unicode_filenames:
|
if not os.path.supports_unicode_filenames:
|
||||||
self.expected.add('test_pep277')
|
self.expected.add('test_pep277')
|
||||||
|
|
||||||
# doctest, profile and cProfile tests fail when the codec for the fs
|
# doctest, profile and cProfile tests fail when the codec for the
|
||||||
# encoding isn't built in because PyUnicode_Decode() adds two calls
|
# fs encoding isn't built in because PyUnicode_Decode() adds two
|
||||||
# into Python.
|
# calls into Python.
|
||||||
encs = ("utf-8", "latin-1", "ascii", "mbcs", "utf-16", "utf-32")
|
encs = ("utf-8", "latin-1", "ascii", "mbcs", "utf-16", "utf-32")
|
||||||
if sys.getfilesystemencoding().lower() not in encs:
|
if sys.getfilesystemencoding().lower() not in encs:
|
||||||
self.expected.add('test_profile')
|
self.expected.add('test_profile')
|
||||||
|
|
|
@ -119,5 +119,11 @@ class C:
|
||||||
ticks += 1
|
ticks += 1
|
||||||
raise AttributeError
|
raise AttributeError
|
||||||
|
|
||||||
|
|
||||||
|
def test_main():
|
||||||
|
from test.test_support import TestSkipped
|
||||||
|
raise TestSkipped('test_cProfile test is current broken')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
Loading…
Reference in New Issue