We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d137431 commit 768b5b8Copy full SHA for 768b5b8
1 file changed
src/pytest_codspeed/plugin.py
@@ -5,6 +5,7 @@
5
import importlib.util
6
import json
7
import os
8
+import random
9
from dataclasses import dataclass, field
10
from pathlib import Path
11
from time import time
@@ -259,6 +260,7 @@ def _measure(
259
260
*args: P.args,
261
**kwargs: P.kwargs,
262
) -> T:
263
+ random.seed(0)
264
is_gc_enabled = gc.isenabled()
265
if is_gc_enabled:
266
gc.collect()
0 commit comments