Skip to content

Commit

Permalink
🩹 Undo removed print, adjust random seed name in ipdb
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Sep 17, 2024
1 parent 27ed187 commit b8434b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wake/development/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions wake/testing/pytest_plugin_single.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit b8434b1

Please sign in to comment.