From: Stefan Behnel Date: Sun, 11 Jan 2009 07:42:08 +0000 (+0100) Subject: made new test case an error test case X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=77a40c9054c45ce3dd19c709a198183df48814b1;p=cython.git made new test case an error test case --HG-- rename : tests/compile/nonconst_def.pyx => tests/errors/nonconst_def.pyx --- diff --git a/tests/compile/nonconst_def.pyx b/tests/compile/nonconst_def.pyx deleted file mode 100644 index 9427f97f..00000000 --- a/tests/compile/nonconst_def.pyx +++ /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 index 00000000..5432738a --- /dev/null +++ b/tests/errors/nonconst_def.pyx @@ -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' +"""