Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 014d4a0

Browse files
committed
Disable the cProfile test for now -- it's broken.
1 parent c17b35c commit 014d4a0

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Lib/test/regrtest.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,13 +1131,17 @@ def __init__(self):
11311131
s = _expectations[sys.platform]
11321132
self.expected = set(s.split())
11331133

1134+
# These are broken tests, for now skipped on every platform.
1135+
# XXX Fix these!
1136+
self.expected.add('test_cProfile')
1137+
11341138
# expected to be skipped on every platform, even Linux
11351139
if not os.path.supports_unicode_filenames:
11361140
self.expected.add('test_pep277')
11371141

1138-
# doctest, profile and cProfile tests fail when the codec for the fs
1139-
# encoding isn't built in because PyUnicode_Decode() adds two calls
1140-
# into Python.
1142+
# doctest, profile and cProfile tests fail when the codec for the
1143+
# fs encoding isn't built in because PyUnicode_Decode() adds two
1144+
# calls into Python.
11411145
encs = ("utf-8", "latin-1", "ascii", "mbcs", "utf-16", "utf-32")
11421146
if sys.getfilesystemencoding().lower() not in encs:
11431147
self.expected.add('test_profile')

Lib/test/test_cProfile.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,11 @@ def __getattr__(self, name):
119119
ticks += 1
120120
raise AttributeError
121121

122+
123+
def test_main():
124+
from test.test_support import TestSkipped
125+
raise TestSkipped('test_cProfile test is current broken')
126+
127+
122128
if __name__ == "__main__":
123129
test_main()

0 commit comments

Comments
 (0)