@@ -560,7 +560,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
560
560
'cpu_count' : - 1 ,
561
561
'faulthandler' : False ,
562
562
'tracemalloc' : 0 ,
563
- 'perf_profiling' : False ,
563
+ 'perf_profiling' : 0 ,
564
564
'import_time' : False ,
565
565
'code_debug_ranges' : True ,
566
566
'show_ref_count' : False ,
@@ -652,7 +652,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
652
652
use_hash_seed = False ,
653
653
faulthandler = False ,
654
654
tracemalloc = False ,
655
- perf_profiling = False ,
655
+ perf_profiling = 0 ,
656
656
pathconfig_warnings = False ,
657
657
)
658
658
if MS_WINDOWS :
@@ -966,7 +966,7 @@ def test_init_from_config(self):
966
966
'use_hash_seed' : True ,
967
967
'hash_seed' : 123 ,
968
968
'tracemalloc' : 2 ,
969
- 'perf_profiling' : False ,
969
+ 'perf_profiling' : 0 ,
970
970
'import_time' : True ,
971
971
'code_debug_ranges' : False ,
972
972
'show_ref_count' : True ,
@@ -1031,7 +1031,7 @@ def test_init_compat_env(self):
1031
1031
'use_hash_seed' : True ,
1032
1032
'hash_seed' : 42 ,
1033
1033
'tracemalloc' : 2 ,
1034
- 'perf_profiling' : False ,
1034
+ 'perf_profiling' : 0 ,
1035
1035
'import_time' : True ,
1036
1036
'code_debug_ranges' : False ,
1037
1037
'malloc_stats' : True ,
@@ -1051,6 +1051,7 @@ def test_init_compat_env(self):
1051
1051
'module_search_paths' : self .IGNORE_CONFIG ,
1052
1052
'safe_path' : True ,
1053
1053
'int_max_str_digits' : 4567 ,
1054
+ 'perf_profiling' : 1 ,
1054
1055
}
1055
1056
if Py_STATS :
1056
1057
config ['_pystats' ] = 1
@@ -1066,7 +1067,7 @@ def test_init_python_env(self):
1066
1067
'use_hash_seed' : True ,
1067
1068
'hash_seed' : 42 ,
1068
1069
'tracemalloc' : 2 ,
1069
- 'perf_profiling' : False ,
1070
+ 'perf_profiling' : 0 ,
1070
1071
'import_time' : True ,
1071
1072
'code_debug_ranges' : False ,
1072
1073
'malloc_stats' : True ,
@@ -1086,6 +1087,7 @@ def test_init_python_env(self):
1086
1087
'module_search_paths' : self .IGNORE_CONFIG ,
1087
1088
'safe_path' : True ,
1088
1089
'int_max_str_digits' : 4567 ,
1090
+ 'perf_profiling' : 1 ,
1089
1091
}
1090
1092
if Py_STATS :
1091
1093
config ['_pystats' ] = True
@@ -1763,6 +1765,7 @@ def test_initconfig_api(self):
1763
1765
'xoptions' : {'faulthandler' : True },
1764
1766
'hash_seed' : 10 ,
1765
1767
'use_hash_seed' : True ,
1768
+ 'perf_profiling' : 2 ,
1766
1769
}
1767
1770
config_dev_mode (preconfig , config )
1768
1771
self .check_all_configs ("test_initconfig_api" , config , preconfig ,
0 commit comments