Skip to content

Commit a201c26

Browse files
committed
possible warning message when cpu resource is missing
1 parent 96e4cd6 commit a201c26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_xpickle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
has_c_implementation = False
1919

2020
support.requires('xpickle')
21+
if not support.is_resource_enabled('cpu'):
22+
support.print_warning("without 'cpu' resource, many tests won't be run")
2123

2224
is_windows = sys.platform.startswith('win')
2325

0 commit comments

Comments
 (0)