]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
test: fix _is_perf_version_at_least typo (#124199)
authorSam James <sam@gentoo.org>
Wed, 18 Sep 2024 12:44:32 +0000 (13:44 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Sep 2024 12:44:32 +0000 (13:44 +0100)
Lib/test/test_perf_profiler.py

index ac1911ca24eafe70d1ede67b2e2a20dd406f8dab..b68a55259c62e1831f5fa839a30900f9a35b847b 100644 (file)
@@ -479,7 +479,7 @@ class TestPerfProfiler(unittest.TestCase, TestPerfProfilerMixin):
                 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")
-@unittest.skipUnless(_is_perf_vesion_at_least(6, 6), "perf command may not work due to a perf bug")
+@unittest.skipUnless(_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: