File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,17 +303,17 @@ def files_to_test(cls):
303303 if not item .name .startswith ("bad" )
304304 ]
305305
306- tests_to_run_always = {item for item in items if
307- item .name in cls .run_always_files }
308-
309306 # Test limited subset of files unless the 'cpu' resource is specified.
310307 if not test .support .is_resource_enabled ("cpu" ):
311- items = set (random .sample (items , 10 ))
312308
313- # Make sure that at least tests that heavily use grammar features are
314- # considered to reduce the change of missing something.
309+ tests_to_run_always = {item for item in items if
310+ item .name in cls .run_always_files }
311+
312+ items = set (random .sample (items , 10 ))
315313
316- items = list (items | tests_to_run_always )
314+ # Make sure that at least tests that heavily use grammar features are
315+ # always considered in order to reduce the chance of missing something.
316+ items = list (items | tests_to_run_always )
317317
318318 # bpo-31174: Store the names sample to always test the same files.
319319 # It prevents false alarms when hunting reference leaks.
You can’t perform that action at this time.
0 commit comments