File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ def mock_urandom(n: int) -> bytes:
189189 pass
190190
191191
192- _apply_deterministic_patches ()
192+ # Note: Deterministic patches are applied conditionally, not globally
193+ # They should only be applied when running CodeFlash optimization tests
193194
194195
195196def pytest_addoption (parser : Parser ) -> None :
@@ -255,6 +256,9 @@ def pytest_configure(config: Config) -> None:
255256 config .addinivalue_line ("markers" , "loops(n): run the given test function `n` times." )
256257 config .pluginmanager .register (PytestLoops (config ), PytestLoops .name )
257258
259+ # Apply deterministic patches when the plugin is configured
260+ _apply_deterministic_patches ()
261+
258262
259263class PytestLoops :
260264 name : str = "pytest-loops"
You can’t perform that action at this time.
0 commit comments