summaryrefslogtreecommitdiff
path: root/docutils
diff options
context:
space:
mode:
Diffstat (limited to 'docutils')
-rwxr-xr-xdocutils/test/test_nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/test/test_nodes.py b/docutils/test/test_nodes.py
index 7178a8735..c981a4e96 100755
--- a/docutils/test/test_nodes.py
+++ b/docutils/test/test_nodes.py
@@ -175,7 +175,7 @@ class MiscTests(unittest.TestCase):
node_class_names = []
for x in dir(nodes):
c = getattr(nodes, x)
- if isinstance(c, ClassType) and issubclass(c, nodes.Node) \
+ if isinstance(c, (type, ClassType)) and issubclass(c, nodes.Node) \
and len(c.__bases__) > 1:
node_class_names.append(x)
node_class_names.sort()