diff --git a/tests/regressiontests/test_utils/tests.py b/tests/regressiontests/test_utils/tests.py
index 2f950bef10..a2539bf8c6 100644
--- a/tests/regressiontests/test_utils/tests.py
+++ b/tests/regressiontests/test_utils/tests.py
@@ -32,10 +32,10 @@ r"""
>>> def produce_xml_fragment():
... stream = StringIO()
... xml = SimplerXMLGenerator(stream, encoding='utf-8')
-... xml.startElement("foo", {"aaa" : "1.0", "bbb": "2.0"})
+... xml.startElement("foo", {"aaa": "1.0", "bbb": "2.0"})
... xml.characters("Hello")
... xml.endElement("foo")
-... xml.startElement("bar", {})
+... xml.startElement("bar", {"ccc": "3.0", "ddd": "4.0"})
... xml.endElement("bar")
... return stream.getvalue()
@@ -64,9 +64,9 @@ r"""
'\nHelloGoodbye'
>>> produce_xml_fragment()
-'Hello'
+'Hello'
>>> produce_xml_fragment()
-'Hello'
+'Hello'
"""
\ No newline at end of file