From a201c2693e69b665499fac5e96e42d6f42acce3c Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Fri, 30 Jan 2026 12:25:38 -0600 Subject: [PATCH 1/3] possible warning message when cpu resource is missing --- Lib/test/test_xpickle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_xpickle.py b/Lib/test/test_xpickle.py index 158f27dce4fdc2..94799ce556a3c6 100644 --- a/Lib/test/test_xpickle.py +++ b/Lib/test/test_xpickle.py @@ -18,6 +18,8 @@ has_c_implementation = False support.requires('xpickle') +if not support.is_resource_enabled('cpu'): + support.print_warning("without 'cpu' resource, many tests won't be run") is_windows = sys.platform.startswith('win') From 12c4b35f94e40fae869a65662bbe0df9b7f0071d Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Fri, 30 Jan 2026 13:35:44 -0600 Subject: [PATCH 2/3] in fact, nothing runs without the cpu resource --- Lib/test/test_xpickle.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_xpickle.py b/Lib/test/test_xpickle.py index 94799ce556a3c6..d6082bce9f1cc2 100644 --- a/Lib/test/test_xpickle.py +++ b/Lib/test/test_xpickle.py @@ -18,8 +18,7 @@ has_c_implementation = False support.requires('xpickle') -if not support.is_resource_enabled('cpu'): - support.print_warning("without 'cpu' resource, many tests won't be run") +support.requires('cpu') is_windows = sys.platform.startswith('win') From e96728711528d8fc6f51817ca1290adf0cecbf31 Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Fri, 30 Jan 2026 13:54:01 -0600 Subject: [PATCH 3/3] redundant, per StanFromIreland --- Lib/test/test_xpickle.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/test/test_xpickle.py b/Lib/test/test_xpickle.py index d6082bce9f1cc2..d042ca1811d18d 100644 --- a/Lib/test/test_xpickle.py +++ b/Lib/test/test_xpickle.py @@ -84,7 +84,6 @@ def have_python_version(py_version): return py_executable_map.get(py_version, None) -@support.requires_resource('cpu') class AbstractCompatTests(pickletester.AbstractPickleTests): py_version = None