summaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2018-09-25 23:15:29 +0300
committermattip <matti.picus@gmail.com>2018-09-25 23:15:29 +0300
commit9e7fdef1de7b185f3c6925cecefea746e6e83853 (patch)
tree5236a0a927bd3119609a3ac880a8af924863062f /tests/run
parent920aee8428edecc367865cc806ca026c61fd6827 (diff)
downloadcython-9e7fdef1de7b185f3c6925cecefea746e6e83853.tar.gz
MAINT: fixes from review
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/check_size.srctree7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/run/check_size.srctree b/tests/run/check_size.srctree
index 0c4116184..8391534e4 100644
--- a/tests/run/check_size.srctree
+++ b/tests/run/check_size.srctree
@@ -4,6 +4,7 @@ PYTHON -c "import runner"
######## setup.py ########
from Cython.Build.Dependencies import cythonize
+from Cython.Compiler.Errors import CompileError
from distutils.core import setup
# force the build order
@@ -14,8 +15,8 @@ setup(ext_modules = cythonize("_check_size*.pyx"))
try:
setup(ext_modules= cythonize("check_size6.pyx"))
assert False
-except AttributeError as e:
- assert 'max' in str(e)
+except CompileError as e:
+ pass
######## check_size_nominal.h ########
@@ -168,7 +169,7 @@ cpdef public int testme(Foo f) except -1:
cdef extern from "check_size_smaller.h":
- # Raise AttributeError when using bad value
+ # Raise Compilerror when using bad value
ctypedef class check_size.Foo [object FooStructSmall, check_size max]:
cdef:
int f9