Skip to content

Commit

Permalink
Update src/base/tests/test_util.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christophe Simonis <KangOl@users.noreply.github.com>
  • Loading branch information
kmagusiak and KangOl authored Nov 12, 2024
1 parent 61e2679 commit 78a637c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@contextmanager
def without_testing():
thread = threading.current_thread()
testing = getattr(thread, "testing", False)
testing = getattr(modules.module, "current_test", False) or getattr(thread, "testing", False)
try:
modules.module.current_test = False
thread.testing = False
Expand Down

0 comments on commit 78a637c

Please sign in to comment.