summaryrefslogtreecommitdiff
path: root/src/zope/tal/tests/test_xmlparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/tal/tests/test_xmlparser.py')
-rw-r--r--src/zope/tal/tests/test_xmlparser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zope/tal/tests/test_xmlparser.py b/src/zope/tal/tests/test_xmlparser.py
index c8ab0c6..530a938 100644
--- a/src/zope/tal/tests/test_xmlparser.py
+++ b/src/zope/tal/tests/test_xmlparser.py
@@ -102,7 +102,7 @@ class XMLParserTestCase(unittest.TestCase):
parser.parseStream(SegmentedFile(source))
else:
parser.parseString(source)
- self.assertEquals(parser.get_events(),events)
+ self.assertEqual(parser.get_events(), events)
def _run_check_extra(self, source, events):
self._run_check(source, events, EventCollectorExtra)
@@ -158,8 +158,8 @@ text
])
except:
e = sys.exc_info()[1]
- self.assert_(e.lineno == 1,
- "did not receive correct position information")
+ self.assertEqual(e.lineno, 1,
+ "did not receive correct position information")
else:
self.fail("expected parse error: bad nesting")