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:
189
189
pass
190
190
191
191
192
- _apply_deterministic_patches ()
192
+ # Note: Deterministic patches are applied conditionally, not globally
193
+ # They should only be applied when running CodeFlash optimization tests
193
194
194
195
195
196
def pytest_addoption (parser : Parser ) -> None :
@@ -255,6 +256,9 @@ def pytest_configure(config: Config) -> None:
255
256
config .addinivalue_line ("markers" , "loops(n): run the given test function `n` times." )
256
257
config .pluginmanager .register (PytestLoops (config ), PytestLoops .name )
257
258
259
+ # Apply deterministic patches when the plugin is configured
260
+ _apply_deterministic_patches ()
261
+
258
262
259
263
class PytestLoops :
260
264
name : str = "pytest-loops"
You can’t perform that action at this time.
0 commit comments