made new test case an error test case
authorStefan Behnel <scoder@users.berlios.de>
Sun, 11 Jan 2009 07:42:08 +0000 (08:42 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 11 Jan 2009 07:42:08 +0000 (08:42 +0100)
--HG--
rename : tests/compile/nonconst_def.pyx => tests/errors/nonconst_def.pyx

tests/compile/nonconst_def.pyx [deleted file]
tests/errors/nonconst_def.pyx [new file with mode: 0644]

diff --git a/tests/compile/nonconst_def.pyx b/tests/compile/nonconst_def.pyx
deleted file mode 100644 (file)
index 9427f97..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-import os
-DEF ospath = os.path
-
diff --git a/tests/errors/nonconst_def.pyx b/tests/errors/nonconst_def.pyx
new file mode 100644 (file)
index 0000000..5432738
--- /dev/null
@@ -0,0 +1,7 @@
+import os
+DEF ospath = os.path
+
+_ERRORS = u"""
+2:15: Compile-time name 'os' not defined
+2:15: Error in compile-time expression: AttributeError: 'NoneType' object has no attribute 'path'
+"""