Skip to content

Commit b62fddb

Browse files
committed
Remove patch warning
1 parent 3e8dd23 commit b62fddb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_diffraction_objects.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,10 @@ def test_dump(tmp_path, mocker):
243243
x, y, "q", metadata={"thing1": 1, "thing2": "thing2", "package_info": {"package2": "3.4.5"}}
244244
)
245245

246-
247-
with mocker.patch("importlib.metadata.version", return_value="3.3.0"), freeze_time("2012-01-14"):
246+
mocker.patch("importlib.metadata.version", return_value="3.3.0")
247+
with freeze_time("2012-01-14"):
248248
test.dump(file, "q")
249+
249250
with open(file, "r") as f:
250251
actual = f.read()
251252
expected = (

0 commit comments

Comments
 (0)