use the py3k version of callable()

This commit is contained in:
Benjamin Peterson
2009-01-10 13:04:23 -06:00
parent 5e1711ab21
commit 07c5a8b449
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ def test_html(app):
for path, check in paths.iteritems():
nodes = list(etree.findall(path))
assert nodes != []
if callable(check):
if hasattr(check, '__call__'):
check(nodes)
elif not check:
# only check for node presence