cython-devel
changeset 1604:6d42bbf30e7f
made new test case an error test case
| author | Stefan Behnel <scoder@users.berlios.de> |
|---|---|
| date | Sun Jan 11 08:42:08 2009 +0100 (18 months ago) |
| parents | 8cfcf8316bc5 |
| children | ac6ae1f4cb75 |
| files | tests/compile/nonconst_def.pyx tests/errors/nonconst_def.pyx |
line diff
1.1 --- a/tests/compile/nonconst_def.pyx Sat Jan 10 11:21:46 2009 -0800
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,3 +0,0 @@
1.4 -import os
1.5 -DEF ospath = os.path
1.6 -
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/tests/errors/nonconst_def.pyx Sun Jan 11 08:42:08 2009 +0100
2.3 @@ -0,0 +1,7 @@
2.4 +import os
2.5 +DEF ospath = os.path
2.6 +
2.7 +_ERRORS = u"""
2.8 +2:15: Compile-time name 'os' not defined
2.9 +2:15: Error in compile-time expression: AttributeError: 'NoneType' object has no attribute 'path'
2.10 +"""
