diff options
Diffstat (limited to 'tests/run/public_enum.pyx')
-rw-r--r-- | tests/run/public_enum.pyx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/run/public_enum.pyx b/tests/run/public_enum.pyx index 1697c5d71..15f550b2e 100644 --- a/tests/run/public_enum.pyx +++ b/tests/run/public_enum.pyx @@ -1,10 +1,10 @@ -__doc__ = u""" +# mode: run + +""" >>> BAR == 3 True >>> HONK == 3+2+1 True ->>> X == 4*5 + 1 -True >>> NONPUBLIC # doctest: +ELLIPSIS Traceback (most recent call last): NameError: ...name 'NONPUBLIC' is not defined @@ -12,8 +12,6 @@ NameError: ...name 'NONPUBLIC' is not defined True """ -DEF X = 4*5 - cdef enum SECRET: NONPUBLIC = 23 + 42 @@ -21,4 +19,3 @@ cdef public enum FOO: BAR = 3 HONK = 3+2+1 NOWPUBLIC = NONPUBLIC - X = X + 1 # FIXME: should this really work? |