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."""