Skip to content

Commit b95ab8b

Browse files
committed
ruff fixes
1 parent 30c3a88 commit b95ab8b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/callbacks/fitting/test_fitting_methods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def test_polynomial_model_order(self, deg: int):
267267
x = np.zeros(3)
268268

269269
with pytest.raises(
270-
ValueError, match="The polynomial degree should be at least 0 and smaller than 8."
270+
ValueError, match=r"The polynomial degree should be at least 0 and smaller than 8."
271271
):
272272
Polynomial.model(deg).func(x)
273273

@@ -304,7 +304,7 @@ def test_invalid_polynomial_guess(self, deg: int):
304304

305305
# -1 and 8 are both invalid polynomial degrees
306306
with pytest.raises(
307-
ValueError, match="The polynomial degree should be at least 0 and smaller than 8."
307+
ValueError, match=r"The polynomial degree should be at least 0 and smaller than 8."
308308
):
309309
Polynomial.guess(deg)(x, y)
310310

tests/devices/test_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_block_naming(rw_rbv_block):
7373
def test_mot_block_naming(mot_block):
7474
assert mot_block.name == "mot_block"
7575
assert mot_block.user_readback.name == "mot_block"
76-
assert mot_block.user_setpoint.name == ("mot_block-user_setpoint" "")
76+
assert mot_block.user_setpoint.name == ("mot_block-user_setpoint")
7777

7878

7979
def test_block_signal_monitors_correct_pv(rw_rbv_block):

0 commit comments

Comments
 (0)