mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
gh-107954: Fix configuration type for the perf profiler (#124636)
This commit is contained in:
parent
425587a110
commit
02b49c5150
5 changed files with 28 additions and 15 deletions
|
@ -560,7 +560,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'cpu_count': -1,
|
||||
'faulthandler': False,
|
||||
'tracemalloc': 0,
|
||||
'perf_profiling': False,
|
||||
'perf_profiling': 0,
|
||||
'import_time': False,
|
||||
'code_debug_ranges': True,
|
||||
'show_ref_count': False,
|
||||
|
@ -652,7 +652,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
use_hash_seed=False,
|
||||
faulthandler=False,
|
||||
tracemalloc=False,
|
||||
perf_profiling=False,
|
||||
perf_profiling=0,
|
||||
pathconfig_warnings=False,
|
||||
)
|
||||
if MS_WINDOWS:
|
||||
|
@ -966,7 +966,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': True,
|
||||
'hash_seed': 123,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': False,
|
||||
'perf_profiling': 0,
|
||||
'import_time': True,
|
||||
'code_debug_ranges': False,
|
||||
'show_ref_count': True,
|
||||
|
@ -1031,7 +1031,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': True,
|
||||
'hash_seed': 42,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': False,
|
||||
'perf_profiling': 0,
|
||||
'import_time': True,
|
||||
'code_debug_ranges': False,
|
||||
'malloc_stats': True,
|
||||
|
@ -1051,6 +1051,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'module_search_paths': self.IGNORE_CONFIG,
|
||||
'safe_path': True,
|
||||
'int_max_str_digits': 4567,
|
||||
'perf_profiling': 1,
|
||||
}
|
||||
if Py_STATS:
|
||||
config['_pystats'] = 1
|
||||
|
@ -1066,7 +1067,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'use_hash_seed': True,
|
||||
'hash_seed': 42,
|
||||
'tracemalloc': 2,
|
||||
'perf_profiling': False,
|
||||
'perf_profiling': 0,
|
||||
'import_time': True,
|
||||
'code_debug_ranges': False,
|
||||
'malloc_stats': True,
|
||||
|
@ -1086,6 +1087,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'module_search_paths': self.IGNORE_CONFIG,
|
||||
'safe_path': True,
|
||||
'int_max_str_digits': 4567,
|
||||
'perf_profiling': 1,
|
||||
}
|
||||
if Py_STATS:
|
||||
config['_pystats'] = True
|
||||
|
@ -1763,6 +1765,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
|
|||
'xoptions': {'faulthandler': True},
|
||||
'hash_seed': 10,
|
||||
'use_hash_seed': True,
|
||||
'perf_profiling': 2,
|
||||
}
|
||||
config_dev_mode(preconfig, config)
|
||||
self.check_all_configs("test_initconfig_api", config, preconfig,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue