[Lxml-checkins] r47483 - lxml/trunk/src/lxml
ianb at codespeak.net
ianb at codespeak.net
Tue Oct 16 05:35:34 CEST 2007
Author: ianb
Date: Tue Oct 16 05:35:33 2007
New Revision: 47483
Modified:
lxml/trunk/src/lxml/doctestcompare.py
Log:
Oops, sometimes the tag we're comparing is a comment
Modified: lxml/trunk/src/lxml/doctestcompare.py
==============================================================================
--- lxml/trunk/src/lxml/doctestcompare.py (original)
+++ lxml/trunk/src/lxml/doctestcompare.py Tue Oct 16 05:35:33 2007
@@ -151,6 +151,9 @@
def tag_compare(self, want, got):
if want == 'any':
return True
+ if (not isinstance(want, basestring)
+ or not isinstance(got, basestring)):
+ return want == got
want = want or ''
got = got or ''
if want.startswith('{...}'):
More information about the lxml-checkins
mailing list