From 9207d005d634645bceb7bc8330ec3dac379da717 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 28 Apr 2008 10:34:24 +0200 Subject: [PATCH] simple error test for undefined names --- tests/errors/undefinedname.pyx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/errors/undefinedname.pyx diff --git a/tests/errors/undefinedname.pyx b/tests/errors/undefinedname.pyx new file mode 100644 index 00000000..4258f4b5 --- /dev/null +++ b/tests/errors/undefinedname.pyx @@ -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_ +""" -- 2.26.2