diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-17 06:13:34 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2008-07-17 06:13:34 +0000 |
| commit | f39abe290f5a8aca60ee61fa0aaf8f7f178e1dcf (patch) | |
| tree | bb943f77216cddbe3b152989c861b4114539ecf4 /docutils | |
| parent | 680bdb30ae54b3b388dfdf1230f6606144e6d694 (diff) | |
| download | docutils-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-x | docutils/test/test_nodes.py | 2 |
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() |
