From 77a40c9054c45ce3dd19c709a198183df48814b1 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 11 Jan 2009 08:42:08 +0100 Subject: [PATCH] made new test case an error test case --HG-- rename : tests/compile/nonconst_def.pyx => tests/errors/nonconst_def.pyx --- tests/compile/nonconst_def.pyx | 3 --- tests/errors/nonconst_def.pyx | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 tests/compile/nonconst_def.pyx create mode 100644 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' +""" -- 2.26.2