Skip to content

Commit

Permalink
Fix formatting new warning
Browse files Browse the repository at this point in the history
#384 popped up as warning in my tests, where is saw the missing white spaces ("berepeatable" and "isnot"):
```
  /home/dtr/Codes/emg3d/tests/test_simulations.py:959: UserWarning: You are running a pytest without setting a random seed, the results might not berepeatable. For repeatable tests please pass an argument to `random seed` that isnot `None`.
    discretize.tests.assert_isadjoint(
```
  • Loading branch information
prisae authored Jan 10, 2025
1 parent bc3e78d commit 68f456f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discretize/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def _warn_random_test():
if in_pytest or in_nosetest:
test = "pytest" if in_pytest else "nosetest"
warnings.warn(
f"You are running a {test} without setting a random seed, the results might not be"
"repeatable. For repeatable tests please pass an argument to `random seed` that is"
"not `None`.",
f"You are running a {test} without setting a random seed, the results might not "
"be repeatable. For repeatable tests please pass an argument to `random seed` "
"that is not `None`.",
UserWarning,
stacklevel=3,
)
Expand Down

0 comments on commit 68f456f

Please sign in to comment.