From 68f456f2bf11b4ffc5faf923b5fde033b8b2200a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dieter=20Werthm=C3=BCller?= Date: Fri, 10 Jan 2025 11:08:03 +0100 Subject: [PATCH] Fix formatting new warning https://github.com/simpeg/discretize/pull/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( ``` --- discretize/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/discretize/tests.py b/discretize/tests.py index ed8b65eb3..8fdbc6416 100644 --- a/discretize/tests.py +++ b/discretize/tests.py @@ -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, )