From ba001950ee58bcb3574004ed8841d9fe2b7a11d8 Mon Sep 17 00:00:00 2001 From: Kevin Turcios Date: Fri, 24 Apr 2026 05:55:32 -0500 Subject: [PATCH] fix: restore clean bubble_sort_method.py test fixture --- .../code_to_optimize/bubble_sort_method.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/codeflash-python/tests/code_to_optimize/bubble_sort_method.py b/packages/codeflash-python/tests/code_to_optimize/bubble_sort_method.py index 774c34f..9c4531b 100644 --- a/packages/codeflash-python/tests/code_to_optimize/bubble_sort_method.py +++ b/packages/codeflash-python/tests/code_to_optimize/bubble_sort_method.py @@ -1,48 +1,41 @@ import sys -from codeflash_async_wrapper import codeflash_behavior_sync - -from codeflash_python.runtime._codeflash_capture import codeflash_capture - class BubbleSorter: - - @codeflash_capture(function_name='BubbleSorter.__init__', tmp_dir_path='/var/folders/mg/k_c0twcj37q_gph3cfy3zlt80000gn/T/codeflash_34197et8/test_return_values', tests_root='/Users/krrt7/Desktop/work/cf_org/codeflash-agent/.claude/worktrees/jaunty-sauteeing-dolphin/packages/codeflash-python/tests/code_to_optimize/tests/pytest', is_fto=True) def __init__(self, x=0): self.x = x - @codeflash_behavior_sync def sorter(self, arr): - print('codeflash stdout : BubbleSorter.sorter() called') + print("codeflash stdout : BubbleSorter.sorter() called") for i in range(len(arr)): for j in range(len(arr) - 1): if arr[j] > arr[j + 1]: temp = arr[j] arr[j] = arr[j + 1] arr[j + 1] = temp - print('stderr test', file=sys.stderr) + print("stderr test", file=sys.stderr) return arr @classmethod def sorter_classmethod(cls, arr): - print('codeflash stdout : BubbleSorter.sorter_classmethod() called') + print("codeflash stdout : BubbleSorter.sorter_classmethod() called") for i in range(len(arr)): for j in range(len(arr) - 1): if arr[j] > arr[j + 1]: temp = arr[j] arr[j] = arr[j + 1] arr[j + 1] = temp - print('stderr test classmethod', file=sys.stderr) + print("stderr test classmethod", file=sys.stderr) return arr @staticmethod def sorter_staticmethod(arr): - print('codeflash stdout : BubbleSorter.sorter_staticmethod() called') + print("codeflash stdout : BubbleSorter.sorter_staticmethod() called") for i in range(len(arr)): for j in range(len(arr) - 1): if arr[j] > arr[j + 1]: temp = arr[j] arr[j] = arr[j + 1] arr[j + 1] = temp - print('stderr test staticmethod', file=sys.stderr) + print("stderr test staticmethod", file=sys.stderr) return arr