From 9611f2e8efeb5bd147bd960ef43e998cf0e80fe5 Mon Sep 17 00:00:00 2001 From: Vinit Kumar Date: Thu, 17 Sep 2026 23:33:53 +0530 Subject: [PATCH] fix: type error check in test --- tests/test_dict2xml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_dict2xml.py b/tests/test_dict2xml.py index 74e2560..6935003 100644 --- a/tests/test_dict2xml.py +++ b/tests/test_dict2xml.py @@ -190,8 +190,8 @@ def test_dict2xml_with_flat(self) -> None: def test_dict2xml_omit_list(self) -> None: """Test dicttoxml with list omission.""" obj = {"list": [{"bike": "blue"}, {"wheel": "black"}]} - dicttoxml.dicttoxml(obj, root=False, attr_type=False, item_wrap=False) - assert b"blueblack" + result = dicttoxml.dicttoxml(obj, root=False, attr_type=False, item_wrap=False) + assert b"blueblack" == result def test_dict2xml_with_val_and_custom_attr(self) -> None: """Test dicttoxml with @val and custom attributes."""