summaryrefslogtreecommitdiff
path: root/docutils
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-07-17 06:13:34 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-07-17 06:13:34 +0000
commitf39abe290f5a8aca60ee61fa0aaf8f7f178e1dcf (patch)
treebb943f77216cddbe3b152989c861b4114539ecf4 /docutils
parent680bdb30ae54b3b388dfdf1230f6606144e6d694 (diff)
downloaddocutils-f39abe290f5a8aca60ee61fa0aaf8f7f178e1dcf.tar.gz
Change MiscTests.test_node_class_names to make it pass for python2.6
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5599 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
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()