From b294f1dee088be97a7ddeca70daf8ace07d20eda Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Mon, 20 Nov 2023 11:59:46 -0500 Subject: [PATCH] test: replace prints with logger outputs --- tests/test_serializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_serializer.py b/tests/test_serializer.py index 494ecbcb..77f39920 100644 --- a/tests/test_serializer.py +++ b/tests/test_serializer.py @@ -42,7 +42,7 @@ def serializer_dump_load_string_strategy(draw): loads, dumps = serializer.module.loads, serializer.module.dumps def _load_dump_via_string(o): - print(f"load dump via string using {serializer.module=}") + logger.info(f"load dump via string using {serializer.module=}") return loads(dumps(o)) return _load_dump_via_string @@ -55,7 +55,7 @@ def serializer_dump_load_binary_file_strategy(draw): load, dump = serializer.module.load, serializer.module.dump def _load_dump_via_disk(o): - print(f"load dump via disk using {serializer.module=}") + logger.info(f"load dump via disk using {serializer.module=}") with tempfile.TemporaryDirectory() as tempdir: filename = str(uuid.uuid1()) with open(pathlib.Path(tempdir, filename), f"w{serializer.file_type}") as f: