Skip to content

Commit

Permalink
Update test to account for PyPy (pydicom#2092)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaramallion authored Jul 4, 2024
1 parent f57c7ac commit a8e4f4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2372,9 +2372,9 @@ def test_deepcopy_buffer_closed(self):
buff.close()
assert buff.closed
msg = (
"The ValueError exception 'I/O operation on closed file.' occurred trying "
"to deepcopy the buffer-like the dataset was read from, the 'buffer' "
"attribute will be set to 'None' in the copied object"
r"The ValueError exception '(.*)' occurred trying to deepcopy the "
"buffer-like the dataset was read from, the 'buffer' attribute will be "
"set to 'None' in the copied object"
)
with pytest.warns(UserWarning, match=msg):
ds_copy = copy.deepcopy(ds)
Expand Down

0 comments on commit a8e4f4d

Please sign in to comment.