mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Use raw f-string in test_mesh_to_vtk.py
This commit is contained in:
parent
f9c6765eca
commit
a178f5f85a
1 changed files with 2 additions and 2 deletions
|
|
@ -77,8 +77,8 @@ def test_write_data_to_vtk_size_mismatch(mesh):
|
|||
# by regex. These are needed to make the test string match the error message
|
||||
# string when using the match argument as that uses regular expression
|
||||
expected_error_msg = (
|
||||
f"The size of the dataset 'label' ({len(data)}) should be equal to "
|
||||
f"the number of mesh cells ({mesh.num_mesh_cells})"
|
||||
fr"The size of the dataset 'label' \({len(data)}\) should be equal to "
|
||||
fr"the number of mesh cells \({mesh.num_mesh_cells}\)"
|
||||
)
|
||||
with pytest.raises(ValueError, match=expected_error_msg):
|
||||
mesh.write_data_to_vtk(filename="out.vtk", datasets={"label": data})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue