Skip to content

Commit

Permalink
Use raw string literal to resolve SyntaxErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
lbianchi-lbl committed Dec 12, 2024
1 parent 6a1856a commit c548078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watertap/core/tests/test_zero_order_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_set_param_from_data_no_value(self, model):
with pytest.raises(
KeyError,
match="fs.unit - no value provided for recovery_vol"
" \(index: None\) in database.",
r" \(index: None\) in database.",
):
model.fs.unit.set_param_from_data(
model.fs.unit.recovery_vol, {"recovery_vol": {}}
Expand All @@ -230,7 +230,7 @@ def test_set_param_from_data_no_units(self, model):
with pytest.raises(
KeyError,
match="fs.unit - no units provided for recovery_vol"
" \(index: None\) in database.",
r" \(index: None\) in database.",
):
model.fs.unit.set_param_from_data(
model.fs.unit.recovery_vol, {"recovery_vol": {"value": 0.42}}
Expand Down

0 comments on commit c548078

Please sign in to comment.