summaryrefslogtreecommitdiff
path: root/Cython/TestUtils.py
diff options
context:
space:
mode:
authorStefan Behnel <scoder@users.berlios.de>2009-10-10 11:05:53 +0200
committerStefan Behnel <scoder@users.berlios.de>2009-10-10 11:05:53 +0200
commit04f8cc6854ff533ea9be8b290bd5784e48d94f8d (patch)
tree214fc0417ecb848f1609c3ce0e20d25f5c59f786 /Cython/TestUtils.py
parent0ebf976f4b649671f9c51c2d632f7d84e5f29124 (diff)
downloadcython-04f8cc6854ff533ea9be8b290bd5784e48d94f8d.tar.gz
split BytesNode, UnicodeNode and StringNode
Diffstat (limited to 'Cython/TestUtils.py')
-rw-r--r--Cython/TestUtils.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Cython/TestUtils.py b/Cython/TestUtils.py
index bdd08a41e..6d62114c9 100644
--- a/Cython/TestUtils.py
+++ b/Cython/TestUtils.py
@@ -1,12 +1,14 @@
import Cython.Compiler.Errors as Errors
from Cython.CodeWriter import CodeWriter
-import unittest
from Cython.Compiler.ModuleNode import ModuleNode
import Cython.Compiler.Main as Main
from Cython.Compiler.TreeFragment import TreeFragment, strip_common_indent
from Cython.Compiler.Visitor import TreeVisitor, VisitorTransform
from Cython.Compiler import TreePath
+import unittest
+import sys
+
class NodeTypeWriter(TreeVisitor):
def __init__(self):
super(NodeTypeWriter, self).__init__()
@@ -107,7 +109,7 @@ class CythonTest(unittest.TestCase):
try:
return func()
except:
- self.fail()
+ self.fail(str(sys.exc_info()[1]))
class TransformTest(CythonTest):
"""