@@ -560,7 +560,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
560560 'cpu_count' : - 1 ,
561561 'faulthandler' : False ,
562562 'tracemalloc' : 0 ,
563- 'perf_profiling' : False ,
563+ 'perf_profiling' : 0 ,
564564 'import_time' : False ,
565565 'code_debug_ranges' : True ,
566566 'show_ref_count' : False ,
@@ -652,7 +652,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
652652 use_hash_seed = False ,
653653 faulthandler = False ,
654654 tracemalloc = False ,
655- perf_profiling = False ,
655+ perf_profiling = 0 ,
656656 pathconfig_warnings = False ,
657657 )
658658 if MS_WINDOWS :
@@ -966,7 +966,7 @@ def test_init_from_config(self):
966966 'use_hash_seed' : True ,
967967 'hash_seed' : 123 ,
968968 'tracemalloc' : 2 ,
969- 'perf_profiling' : False ,
969+ 'perf_profiling' : 0 ,
970970 'import_time' : True ,
971971 'code_debug_ranges' : False ,
972972 'show_ref_count' : True ,
@@ -1031,7 +1031,7 @@ def test_init_compat_env(self):
10311031 'use_hash_seed' : True ,
10321032 'hash_seed' : 42 ,
10331033 'tracemalloc' : 2 ,
1034- 'perf_profiling' : False ,
1034+ 'perf_profiling' : 0 ,
10351035 'import_time' : True ,
10361036 'code_debug_ranges' : False ,
10371037 'malloc_stats' : True ,
@@ -1051,6 +1051,7 @@ def test_init_compat_env(self):
10511051 'module_search_paths' : self .IGNORE_CONFIG ,
10521052 'safe_path' : True ,
10531053 'int_max_str_digits' : 4567 ,
1054+ 'perf_profiling' : 1 ,
10541055 }
10551056 if Py_STATS :
10561057 config ['_pystats' ] = 1
@@ -1066,7 +1067,7 @@ def test_init_python_env(self):
10661067 'use_hash_seed' : True ,
10671068 'hash_seed' : 42 ,
10681069 'tracemalloc' : 2 ,
1069- 'perf_profiling' : False ,
1070+ 'perf_profiling' : 0 ,
10701071 'import_time' : True ,
10711072 'code_debug_ranges' : False ,
10721073 'malloc_stats' : True ,
@@ -1086,6 +1087,7 @@ def test_init_python_env(self):
10861087 'module_search_paths' : self .IGNORE_CONFIG ,
10871088 'safe_path' : True ,
10881089 'int_max_str_digits' : 4567 ,
1090+ 'perf_profiling' : 1 ,
10891091 }
10901092 if Py_STATS :
10911093 config ['_pystats' ] = True
@@ -1763,6 +1765,7 @@ def test_initconfig_api(self):
17631765 'xoptions' : {'faulthandler' : True },
17641766 'hash_seed' : 10 ,
17651767 'use_hash_seed' : True ,
1768+ 'perf_profiling' : 2 ,
17661769 }
17671770 config_dev_mode (preconfig , config )
17681771 self .check_all_configs ("test_initconfig_api" , config , preconfig ,
0 commit comments