From d4282a8eaba4ba843b07f088e9443340833cdff6 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Fri, 6 Jan 2023 06:54:21 +0100 Subject: Config with pure python template (#19) * Drop support for Python 2.7, 3.5, 3.6. * Add support for Python 3.11. --- src/zope/tal/tests/test_xmlparser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/zope/tal/tests/test_xmlparser.py') diff --git a/src/zope/tal/tests/test_xmlparser.py b/src/zope/tal/tests/test_xmlparser.py index 437d68f..c02d652 100644 --- a/src/zope/tal/tests/test_xmlparser.py +++ b/src/zope/tal/tests/test_xmlparser.py @@ -81,7 +81,7 @@ class EventCollectorExtra(EventCollector): self.append(("starttag_text", self.get_starttag_text())) -class SegmentedFile(object): +class SegmentedFile: def __init__(self, parts): self.parts = list(parts) @@ -253,10 +253,10 @@ text self._parse_error("") def test_unicode_string(self): - output = [('starttag', u'p', []), - ('data', u'\xe4\xf6\xfc\xdf'), - ('endtag', u'p')] - self._run_check(u'

\xe4\xf6\xfc\xdf

', output) + output = [('starttag', 'p', []), + ('data', '\xe4\xf6\xfc\xdf'), + ('endtag', 'p')] + self._run_check('

\xe4\xf6\xfc\xdf

', output) # Support for the Zope regression test framework: -- cgit v1.2.1