https://github.com/python/cpython/commit/0c4884d8aa51df2dd013c3e78fcc3f2077d743c3
commit: 0c4884d8aa51df2dd013c3e78fcc3f2077d743c3
branch: main
author: Sam James <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-09-18T13:44:32+01:00
summary:

test: fix _is_perf_version_at_least typo (#124199)

files:
M Lib/test/test_perf_profiler.py

diff --git a/Lib/test/test_perf_profiler.py b/Lib/test/test_perf_profiler.py
index ac1911ca24eafe..b68a55259c62e1 100644
--- a/Lib/test/test_perf_profiler.py
+++ b/Lib/test/test_perf_profiler.py
@@ -479,7 +479,7 @@ def compile_trampolines_for_all_functions():
                 self.assertIn(line, child_perf_file_contents)
 
 
-def _is_perf_vesion_at_least(major, minor):
+def _is_perf_version_at_least(major, minor):
     # The output of perf --version looks like "perf version 6.7-3" but
     # it can also be perf version "perf version 5.15.143"
     try:
@@ -494,7 +494,7 @@ def _is_perf_vesion_at_least(major, minor):
 
 
 @unittest.skipUnless(perf_command_works(), "perf command doesn't work")
[email protected](_is_perf_vesion_at_least(6, 6), "perf command may not 
work due to a perf bug")
[email protected](_is_perf_version_at_least(6, 6), "perf command may not 
work due to a perf bug")
 class TestPerfProfilerWithDwarf(unittest.TestCase, TestPerfProfilerMixin):
     def run_perf(self, script_dir, script, activate_trampoline=True):
         if activate_trampoline:

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to