aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/pickletester.py
diff options
context:
space:
mode:
authorNeil Schemenauer <nas-github@arctrix.com>2019-07-30 11:08:18 -0700
committerGitHub <noreply@github.com>2019-07-30 11:08:18 -0700
commit52a48e62c6a94577152f9301bbe5f3bc806cfcf1 (patch)
treef19f86065e0217b3db53f90995cd6e806596f83b /Lib/test/pickletester.py
parent27eeaf0f2c9bd53a0fbdfdf38ee759e971221f8d (diff)
downloadcpython-52a48e62c6a94577152f9301bbe5f3bc806cfcf1.tar.gz
cpython-52a48e62c6a94577152f9301bbe5f3bc806cfcf1.zip
bpo-37707: Exclude expensive unit tests from PGO task (GH-15009)
Mark some individual tests to skip when --pgo is used. The tests marked increase the PGO task time significantly and likely don't help improve optimization of the final executable.
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r--Lib/test/pickletester.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py
index 2bc99e6becf..5d402a4711b 100644
--- a/Lib/test/pickletester.py
+++ b/Lib/test/pickletester.py
@@ -2281,6 +2281,7 @@ class AbstractPickleTests(unittest.TestCase):
FRAME_SIZE_MIN = 4
FRAME_SIZE_TARGET = 64 * 1024
+ @support.skip_if_pgo_task
def check_frame_opcodes(self, pickled):
"""
Check the arguments of FRAME opcodes in a protocol 4+ pickle.
@@ -2328,6 +2329,7 @@ class AbstractPickleTests(unittest.TestCase):
elif frameless_start is not None:
self.assertLess(pos - frameless_start, self.FRAME_SIZE_MIN)
+ @support.skip_if_pgo_task
def test_framing_many_objects(self):
obj = list(range(10**5))
for proto in range(4, pickle.HIGHEST_PROTOCOL + 1):
@@ -2417,6 +2419,7 @@ class AbstractPickleTests(unittest.TestCase):
count_opcode(pickle.FRAME, pickled))
self.assertEqual(obj, self.loads(some_frames_pickle))
+ @support.skip_if_pgo_task
def test_framed_write_sizes_with_delayed_writer(self):
class ChunkAccumulator:
"""Accumulate pickler output in a list of raw chunks."""