Skip to content

Commit d0fa020

Browse files
committed
Make tests just compare xml output directly
This avoids a dependency on lxml and seems to work fine for now.
1 parent a49fc31 commit d0fa020

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/regression.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
from cldoc import fs
1212
import glob, os
1313

14-
from lxml import objectify
15-
from lxml import etree
14+
from xml import etree
1615

1716
fs.fs = fs.Virtual
1817

@@ -33,11 +32,8 @@ def t(self):
3332

3433
gf = fs.fs.open(os.path.join('xml', 'xml', xmlname))
3534

36-
got = objectify.parse(gf)
37-
got = etree.tostring(got, pretty_print=True)
38-
39-
exp = objectify.parse(open(f))
40-
exp = etree.tostring(exp, pretty_print=True)
35+
got = gf.read()
36+
exp = open(f).read()
4137

4238
self.maxDiff = None
4339
self.assertMultiLineEqual(got, exp)

0 commit comments

Comments
 (0)