mirror of https://github.com/python/cpython.git
clean trailing whitespace
This commit is contained in:
parent
ceab1a950b
commit
c31f77355c
|
@ -1831,7 +1831,7 @@ def test_bad_find(self):
|
||||||
e = ET.XML(SAMPLE_XML)
|
e = ET.XML(SAMPLE_XML)
|
||||||
with self.assertRaisesRegex(SyntaxError, 'cannot use absolute path'):
|
with self.assertRaisesRegex(SyntaxError, 'cannot use absolute path'):
|
||||||
e.findall('/tag')
|
e.findall('/tag')
|
||||||
|
|
||||||
def test_find_through_ElementTree(self):
|
def test_find_through_ElementTree(self):
|
||||||
e = ET.XML(SAMPLE_XML)
|
e = ET.XML(SAMPLE_XML)
|
||||||
self.assertEqual(ET.ElementTree(e).find('tag').tag, 'tag')
|
self.assertEqual(ET.ElementTree(e).find('tag').tag, 'tag')
|
||||||
|
@ -1841,7 +1841,7 @@ def test_find_through_ElementTree(self):
|
||||||
# this produces a warning
|
# this produces a warning
|
||||||
self.assertEqual(summarize_list(ET.ElementTree(e).findall('//tag')),
|
self.assertEqual(summarize_list(ET.ElementTree(e).findall('//tag')),
|
||||||
['tag'] * 3)
|
['tag'] * 3)
|
||||||
|
|
||||||
|
|
||||||
class ElementIterTest(unittest.TestCase):
|
class ElementIterTest(unittest.TestCase):
|
||||||
def _ilist(self, elem, tag=None):
|
def _ilist(self, elem, tag=None):
|
||||||
|
|
Loading…
Reference in New Issue