simple error test for undefined names
authorStefan Behnel <scoder@users.berlios.de>
Mon, 28 Apr 2008 08:34:24 +0000 (10:34 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 28 Apr 2008 08:34:24 +0000 (10:34 +0200)
tests/errors/undefinedname.pyx [new file with mode: 0644]

diff --git a/tests/errors/undefinedname.pyx b/tests/errors/undefinedname.pyx
new file mode 100644 (file)
index 0000000..4258f4b
--- /dev/null
@@ -0,0 +1,9 @@
+i = _this_global_name_does_not_exist_
+
+def test(i):
+    return _this_local_name_does_not_exist_
+
+_ERRORS = """
+1:37:undeclared name not builtin: _this_global_name_does_not_exist_
+4:43:undeclared name not builtin: _this_local_name_does_not_exist_
+"""