From c2e8c0521e120cba084c44ef3d08af6e43aa31f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20P=C5=99evr=C3=A1til?= Date: Tue, 17 Sep 2024 19:58:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Undo=20removed=20print,=20adjust?= =?UTF-8?q?=20random=20seed=20name=20in=20ipdb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wake/development/globals.py | 2 +- wake/testing/pytest_plugin_single.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wake/development/globals.py b/wake/development/globals.py index 51cbbbbf..aeeceb49 100644 --- a/wake/development/globals.py +++ b/wake/development/globals.py @@ -98,7 +98,7 @@ def attach_debugger( if frames_up > 0: commands.append("up %d" % frames_up) if seed is not None: - commands.append(f"random_seed = bytes.fromhex('{seed.hex()}')") + commands.append(f"wake_random_seed = bytes.fromhex('{seed.hex()}')") p = _init_pdb(commands=commands) p.reset() diff --git a/wake/testing/pytest_plugin_single.py b/wake/testing/pytest_plugin_single.py index a276013e..075524c7 100644 --- a/wake/testing/pytest_plugin_single.py +++ b/wake/testing/pytest_plugin_single.py @@ -67,6 +67,7 @@ def pytest_runtestloop(self, session: Session): coverage = self._cov_proc_count == 1 or self._cov_proc_count == -1 random.seed(self._random_seeds[0]) + console.print(f"Using random seed '{self._random_seeds[0].hex()}'") if self._debug: set_exception_handler(partial(attach_debugger, seed=self._random_seeds[0]))