summaryrefslogtreecommitdiff
path: root/src/zope/tal/tests/test_xmlparser.py
diff options
context:
space:
mode:
authorMichael Howitz <mh@gocept.com>2023-01-06 06:54:21 +0100
committerGitHub <noreply@github.com>2023-01-06 06:54:21 +0100
commitd4282a8eaba4ba843b07f088e9443340833cdff6 (patch)
tree9446f9756ff1424be9f8ec6a4429d2f65f68a2c2 /src/zope/tal/tests/test_xmlparser.py
parent1a7405a1b621b7080450f55f77119bd346cab404 (diff)
downloadzope-tal-d4282a8eaba4ba843b07f088e9443340833cdff6.tar.gz
Config with pure python template (#19)
* Drop support for Python 2.7, 3.5, 3.6. * Add support for Python 3.11.
Diffstat (limited to 'src/zope/tal/tests/test_xmlparser.py')
-rw-r--r--src/zope/tal/tests/test_xmlparser.py10
1 files changed, 5 insertions, 5 deletions
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("<!DOCTYPE foo $ >")
def test_unicode_string(self):
- output = [('starttag', u'p', []),
- ('data', u'\xe4\xf6\xfc\xdf'),
- ('endtag', u'p')]
- self._run_check(u'<p>\xe4\xf6\xfc\xdf</p>', output)
+ output = [('starttag', 'p', []),
+ ('data', '\xe4\xf6\xfc\xdf'),
+ ('endtag', 'p')]
+ self._run_check('<p>\xe4\xf6\xfc\xdf</p>', output)
# Support for the Zope regression test framework: