Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
c8665b07
Commit
c8665b07
authored
Apr 01, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tags to test files.
parent
c56ebd92
Changes
402
Hide whitespace changes
Inline
Side-by-side
Showing
402 changed files
with
757 additions
and
0 deletions
+757
-0
tests/compile/a_capi.pyx
tests/compile/a_capi.pyx
+2
-0
tests/compile/argdefault.pyx
tests/compile/argdefault.pyx
+2
-0
tests/compile/arrayargs.pyx
tests/compile/arrayargs.pyx
+1
-0
tests/compile/arrayptrcompat.pyx
tests/compile/arrayptrcompat.pyx
+2
-0
tests/compile/arraytoptrarg.pyx
tests/compile/arraytoptrarg.pyx
+2
-0
tests/compile/ass2longlong.pyx
tests/compile/ass2longlong.pyx
+2
-0
tests/compile/assert2.pyx
tests/compile/assert2.pyx
+2
-0
tests/compile/behnel4.pyx
tests/compile/behnel4.pyx
+2
-0
tests/compile/belchenko1.pyx
tests/compile/belchenko1.pyx
+2
-0
tests/compile/bufaccess_noassignT444.pyx
tests/compile/bufaccess_noassignT444.pyx
+2
-0
tests/compile/builtin.pyx
tests/compile/builtin.pyx
+2
-0
tests/compile/builtinfuncs.pyx
tests/compile/builtinfuncs.pyx
+2
-0
tests/compile/c_directives.pyx
tests/compile/c_directives.pyx
+1
-0
tests/compile/callingconvention.pyx
tests/compile/callingconvention.pyx
+2
-0
tests/compile/cargdef.pyx
tests/compile/cargdef.pyx
+2
-0
tests/compile/carrdecl.pyx
tests/compile/carrdecl.pyx
+2
-0
tests/compile/cascmp.pyx
tests/compile/cascmp.pyx
+2
-0
tests/compile/cassign.pyx
tests/compile/cassign.pyx
+2
-0
tests/compile/cast_ctypedef_array_T518.pyx
tests/compile/cast_ctypedef_array_T518.pyx
+3
-0
tests/compile/casttoexttype.pyx
tests/compile/casttoexttype.pyx
+2
-0
tests/compile/cdefexternempty.pyx
tests/compile/cdefexternempty.pyx
+2
-0
tests/compile/cdefexternfromstar.pyx
tests/compile/cdefexternfromstar.pyx
+2
-0
tests/compile/cenum.pyx
tests/compile/cenum.pyx
+2
-0
tests/compile/cforfromloop.pyx
tests/compile/cforfromloop.pyx
+2
-0
tests/compile/cimport_package_module_T4.pyx
tests/compile/cimport_package_module_T4.pyx
+3
-0
tests/compile/cimportfrom_T248.pyx
tests/compile/cimportfrom_T248.pyx
+3
-0
tests/compile/classmethargdefault.pyx
tests/compile/classmethargdefault.pyx
+2
-0
tests/compile/cnamespec.pyx
tests/compile/cnamespec.pyx
+2
-0
tests/compile/cnumop.pyx
tests/compile/cnumop.pyx
+2
-0
tests/compile/coercetovoidptr.pyx
tests/compile/coercetovoidptr.pyx
+2
-0
tests/compile/complexbasetype.pyx
tests/compile/complexbasetype.pyx
+2
-0
tests/compile/constexpr.pyx
tests/compile/constexpr.pyx
+2
-0
tests/compile/coventry1.pyx
tests/compile/coventry1.pyx
+2
-0
tests/compile/cpdef.pyx
tests/compile/cpdef.pyx
+2
-0
tests/compile/cpp_enums.pyx
tests/compile/cpp_enums.pyx
+3
-0
tests/compile/cpp_operators.pyx
tests/compile/cpp_operators.pyx
+3
-0
tests/compile/cpp_structs.pyx
tests/compile/cpp_structs.pyx
+3
-0
tests/compile/cpp_templated_ctypedef.pyx
tests/compile/cpp_templated_ctypedef.pyx
+3
-0
tests/compile/cpp_templates.pyx
tests/compile/cpp_templates.pyx
+3
-0
tests/compile/cstructreturn.pyx
tests/compile/cstructreturn.pyx
+2
-0
tests/compile/ctypedef.pyx
tests/compile/ctypedef.pyx
+2
-0
tests/compile/ctypedef_public_class_T355.pyx
tests/compile/ctypedef_public_class_T355.pyx
+3
-0
tests/compile/ctypedefclass.pyx
tests/compile/ctypedefclass.pyx
+2
-0
tests/compile/ctypedefenum.pyx
tests/compile/ctypedefenum.pyx
+2
-0
tests/compile/ctypedefpubapi.pyx
tests/compile/ctypedefpubapi.pyx
+2
-0
tests/compile/ctypedefstruct.pyx
tests/compile/ctypedefstruct.pyx
+2
-0
tests/compile/ctypedefunion.pyx
tests/compile/ctypedefunion.pyx
+2
-0
tests/compile/cunsignedlong.pyx
tests/compile/cunsignedlong.pyx
+2
-0
tests/compile/cverylongtypes.pyx
tests/compile/cverylongtypes.pyx
+2
-0
tests/compile/declandimpl.pyx
tests/compile/declandimpl.pyx
+2
-0
tests/compile/declarations.pyx
tests/compile/declarations.pyx
+2
-0
tests/compile/del.pyx
tests/compile/del.pyx
+2
-0
tests/compile/delslice.pyx
tests/compile/delslice.pyx
+2
-0
tests/compile/docstrings.pyx
tests/compile/docstrings.pyx
+2
-0
tests/compile/doda1.pyx
tests/compile/doda1.pyx
+2
-0
tests/compile/dotted_cimport.pyx
tests/compile/dotted_cimport.pyx
+2
-0
tests/compile/drake1.pyx
tests/compile/drake1.pyx
+2
-0
tests/compile/ellipsis_T488.pyx
tests/compile/ellipsis_T488.pyx
+2
-0
tests/compile/emptytry.pyx
tests/compile/emptytry.pyx
+2
-0
tests/compile/enumintcompat.pyx
tests/compile/enumintcompat.pyx
+2
-0
tests/compile/eqcmp.pyx
tests/compile/eqcmp.pyx
+2
-0
tests/compile/ewing1.pyx
tests/compile/ewing1.pyx
+2
-0
tests/compile/ewing3.pyx
tests/compile/ewing3.pyx
+2
-0
tests/compile/ewing4.pyx
tests/compile/ewing4.pyx
+2
-0
tests/compile/ewing5.pyx
tests/compile/ewing5.pyx
+2
-0
tests/compile/ewing6.pyx
tests/compile/ewing6.pyx
+1
-0
tests/compile/ewing7.pyx
tests/compile/ewing7.pyx
+2
-0
tests/compile/ewing8.pyx
tests/compile/ewing8.pyx
+2
-0
tests/compile/ewing9.pyx
tests/compile/ewing9.pyx
+2
-0
tests/compile/excvalcheck.pyx
tests/compile/excvalcheck.pyx
+2
-0
tests/compile/excvaldecl.pyx
tests/compile/excvaldecl.pyx
+2
-0
tests/compile/excvalreturn.pyx
tests/compile/excvalreturn.pyx
+2
-0
tests/compile/extargdefault.pyx
tests/compile/extargdefault.pyx
+2
-0
tests/compile/extcmethcall.pyx
tests/compile/extcmethcall.pyx
+2
-0
tests/compile/extcoerce.pyx
tests/compile/extcoerce.pyx
+2
-0
tests/compile/extdelattr.pyx
tests/compile/extdelattr.pyx
+2
-0
tests/compile/extdelitem.pyx
tests/compile/extdelitem.pyx
+2
-0
tests/compile/extdelslice.pyx
tests/compile/extdelslice.pyx
+2
-0
tests/compile/extdescrdel.pyx
tests/compile/extdescrdel.pyx
+2
-0
tests/compile/extdescrget.pyx
tests/compile/extdescrget.pyx
+2
-0
tests/compile/extdescrset.pyx
tests/compile/extdescrset.pyx
+2
-0
tests/compile/extern.pyx
tests/compile/extern.pyx
+2
-0
tests/compile/extexttype.pyx
tests/compile/extexttype.pyx
+2
-0
tests/compile/extforward.pyx
tests/compile/extforward.pyx
+2
-0
tests/compile/extgetattr.pyx
tests/compile/extgetattr.pyx
+2
-0
tests/compile/extgetitem.pyx
tests/compile/extgetitem.pyx
+2
-0
tests/compile/exthash.pyx
tests/compile/exthash.pyx
+2
-0
tests/compile/extimported.pyx
tests/compile/extimported.pyx
+2
-0
tests/compile/extimportedsubtype.pyx
tests/compile/extimportedsubtype.pyx
+2
-0
tests/compile/extindex.pyx
tests/compile/extindex.pyx
+2
-0
tests/compile/extinheritdel.pyx
tests/compile/extinheritdel.pyx
+2
-0
tests/compile/extinheritset.pyx
tests/compile/extinheritset.pyx
+2
-0
tests/compile/extpropertyall.pyx
tests/compile/extpropertyall.pyx
+2
-0
tests/compile/extpropertydel.pyx
tests/compile/extpropertydel.pyx
+2
-0
tests/compile/extpropertydoc.pyx
tests/compile/extpropertydoc.pyx
+2
-0
tests/compile/extpropertyget.pyx
tests/compile/extpropertyget.pyx
+2
-0
tests/compile/extpropertyset.pyx
tests/compile/extpropertyset.pyx
+2
-0
tests/compile/extpymemberdef.pyx
tests/compile/extpymemberdef.pyx
+2
-0
tests/compile/extsetattr.pyx
tests/compile/extsetattr.pyx
+2
-0
tests/compile/extsetitem.pyx
tests/compile/extsetitem.pyx
+2
-0
tests/compile/extsetslice.pyx
tests/compile/extsetslice.pyx
+2
-0
tests/compile/first_assignment.pyx
tests/compile/first_assignment.pyx
+1
-0
tests/compile/for.pyx
tests/compile/for.pyx
+2
-0
tests/compile/forfromelse.pyx
tests/compile/forfromelse.pyx
+2
-0
tests/compile/formfeed.pyx
tests/compile/formfeed.pyx
+2
-0
tests/compile/fromimport.pyx
tests/compile/fromimport.pyx
+2
-0
tests/compile/funcptr.pyx
tests/compile/funcptr.pyx
+2
-0
tests/compile/gencall.pyx
tests/compile/gencall.pyx
+2
-0
tests/compile/globalonly.pyx
tests/compile/globalonly.pyx
+2
-0
tests/compile/globalstmt.pyx
tests/compile/globalstmt.pyx
+2
-0
tests/compile/globvardef.pyx
tests/compile/globvardef.pyx
+2
-0
tests/compile/gustafsson2.pyx
tests/compile/gustafsson2.pyx
+2
-0
tests/compile/hinsen2.pyx
tests/compile/hinsen2.pyx
+2
-0
tests/compile/huss2.pyx
tests/compile/huss2.pyx
+2
-0
tests/compile/ia_cdefblock.pyx
tests/compile/ia_cdefblock.pyx
+2
-0
tests/compile/import.pyx
tests/compile/import.pyx
+2
-0
tests/compile/index.pyx
tests/compile/index.pyx
+2
-0
tests/compile/indices.pyx
tests/compile/indices.pyx
+2
-0
tests/compile/ishimoto1.pyx
tests/compile/ishimoto1.pyx
+2
-0
tests/compile/ishimoto4.pyx
tests/compile/ishimoto4.pyx
+2
-0
tests/compile/jiba3.pyx
tests/compile/jiba3.pyx
+2
-0
tests/compile/jiba4.pyx
tests/compile/jiba4.pyx
+2
-0
tests/compile/jiba5.pyx
tests/compile/jiba5.pyx
+2
-0
tests/compile/jiba6.pyx
tests/compile/jiba6.pyx
+2
-0
tests/compile/johnson1.pyx
tests/compile/johnson1.pyx
+2
-0
tests/compile/johnson2.pyx
tests/compile/johnson2.pyx
+2
-0
tests/compile/khavkine1.pyx
tests/compile/khavkine1.pyx
+2
-0
tests/compile/kleckner1.pyx
tests/compile/kleckner1.pyx
+2
-0
tests/compile/lepage_2.pyx
tests/compile/lepage_2.pyx
+2
-0
tests/compile/libc_all.pyx
tests/compile/libc_all.pyx
+2
-0
tests/compile/libc_errno.pyx
tests/compile/libc_errno.pyx
+2
-0
tests/compile/libc_math.pyx
tests/compile/libc_math.pyx
+2
-0
tests/compile/libc_signal.pyx
tests/compile/libc_signal.pyx
+2
-0
tests/compile/longunsigned.pyx
tests/compile/longunsigned.pyx
+2
-0
tests/compile/magcmp.pyx
tests/compile/magcmp.pyx
+2
-0
tests/compile/msvc_strings.pyx
tests/compile/msvc_strings.pyx
+2
-0
tests/compile/nogil.pyx
tests/compile/nogil.pyx
+2
-0
tests/compile/nonctypedefclass.pyx
tests/compile/nonctypedefclass.pyx
+2
-0
tests/compile/none.pyx
tests/compile/none.pyx
+2
-0
tests/compile/notnonearg.pyx
tests/compile/notnonearg.pyx
+2
-0
tests/compile/nullptr.pyx
tests/compile/nullptr.pyx
+2
-0
tests/compile/omittedargnames.pyx
tests/compile/omittedargnames.pyx
+2
-0
tests/compile/pinard4.pyx
tests/compile/pinard4.pyx
+2
-0
tests/compile/posix_pxds.pyx
tests/compile/posix_pxds.pyx
+2
-0
tests/compile/publicapi_api.pyx
tests/compile/publicapi_api.pyx
+1
-0
tests/compile/publicapi_mix.pyx
tests/compile/publicapi_mix.pyx
+1
-0
tests/compile/publicapi_pub.pyx
tests/compile/publicapi_pub.pyx
+1
-0
tests/compile/publicapi_pxd_mix.pyx
tests/compile/publicapi_pxd_mix.pyx
+2
-0
tests/compile/pxd_override_T230.py
tests/compile/pxd_override_T230.py
+2
-0
tests/compile/pyclass.pyx
tests/compile/pyclass.pyx
+2
-0
tests/compile/pylong.pyx
tests/compile/pylong.pyx
+2
-0
tests/compile/r_pernici1.pyx
tests/compile/r_pernici1.pyx
+2
-0
tests/compile/signedtypes.pyx
tests/compile/signedtypes.pyx
+2
-0
tests/compile/slicex.pyx
tests/compile/slicex.pyx
+2
-0
tests/compile/specialfloatvals.pyx
tests/compile/specialfloatvals.pyx
+2
-0
tests/compile/specmethargdefault.pyx
tests/compile/specmethargdefault.pyx
+2
-0
tests/compile/specmethdocstring.pyx
tests/compile/specmethdocstring.pyx
+2
-0
tests/compile/specmethextarg.pyx
tests/compile/specmethextarg.pyx
+2
-0
tests/compile/traceback.pyx
tests/compile/traceback.pyx
+2
-0
tests/compile/tryexcept.pyx
tests/compile/tryexcept.pyx
+2
-0
tests/compile/tryfinally.pyx
tests/compile/tryfinally.pyx
+2
-0
tests/compile/typecast.pyx
tests/compile/typecast.pyx
+2
-0
tests/compile/types_and_names.pyx
tests/compile/types_and_names.pyx
+2
-0
tests/compile/watts2.pyx
tests/compile/watts2.pyx
+2
-0
tests/compile/weakref_T276.pyx
tests/compile/weakref_T276.pyx
+3
-0
tests/compile/while.pyx
tests/compile/while.pyx
+2
-0
tests/compile/withgil.pyx
tests/compile/withgil.pyx
+2
-0
tests/errors/break_outside_loop.pyx
tests/errors/break_outside_loop.pyx
+1
-0
tests/errors/buffertypedef_T117.pyx
tests/errors/buffertypedef_T117.pyx
+3
-0
tests/errors/builtin_type_inheritance.pyx
tests/errors/builtin_type_inheritance.pyx
+1
-0
tests/errors/callargs.pyx
tests/errors/callargs.pyx
+2
-0
tests/errors/callingnonexisting_T307.pyx
tests/errors/callingnonexisting_T307.pyx
+3
-0
tests/errors/cdef_members_T517.pyx
tests/errors/cdef_members_T517.pyx
+3
-0
tests/errors/cdef_syntax.pyx
tests/errors/cdef_syntax.pyx
+1
-0
tests/errors/cdefkwargs.pyx
tests/errors/cdefkwargs.pyx
+2
-0
tests/errors/cdefoptargs.pyx
tests/errors/cdefoptargs.pyx
+2
-0
tests/errors/cdefspecial.pyx
tests/errors/cdefspecial.pyx
+1
-0
tests/errors/cmethbasematch.pyx
tests/errors/cmethbasematch.pyx
+2
-0
tests/errors/compile_time_unraisable_T370.pyx
tests/errors/compile_time_unraisable_T370.pyx
+2
-0
tests/errors/continue_outside_loop.pyx
tests/errors/continue_outside_loop.pyx
+1
-0
tests/errors/cpdef_syntax.pyx
tests/errors/cpdef_syntax.pyx
+1
-0
tests/errors/cpp_no_constructor.pyx
tests/errors/cpp_no_constructor.pyx
+3
-0
tests/errors/cython3_bytes.pyx
tests/errors/cython3_bytes.pyx
+1
-0
tests/errors/declareafteruse_T158.pyx
tests/errors/declareafteruse_T158.pyx
+3
-0
tests/errors/def_nogil.pyx
tests/errors/def_nogil.pyx
+1
-0
tests/errors/e2_packedstruct_T290.pyx
tests/errors/e2_packedstruct_T290.pyx
+3
-0
tests/errors/e_addop.pyx
tests/errors/e_addop.pyx
+2
-0
tests/errors/e_argdefault.pyx
tests/errors/e_argdefault.pyx
+2
-0
tests/errors/e_ass.pyx
tests/errors/e_ass.pyx
+2
-0
tests/errors/e_assnone.pyx
tests/errors/e_assnone.pyx
+2
-0
tests/errors/e_autotestdict.pyx
tests/errors/e_autotestdict.pyx
+2
-0
tests/errors/e_badexcvaltype.pyx
tests/errors/e_badexcvaltype.pyx
+2
-0
tests/errors/e_badfuncargtype.pyx
tests/errors/e_badfuncargtype.pyx
+2
-0
tests/errors/e_badpyparam.pyx
tests/errors/e_badpyparam.pyx
+2
-0
tests/errors/e_badtypeuse.pyx
tests/errors/e_badtypeuse.pyx
+2
-0
tests/errors/e_bitop.pyx
tests/errors/e_bitop.pyx
+2
-0
tests/errors/e_boolcoerce.pyx
tests/errors/e_boolcoerce.pyx
+2
-0
tests/errors/e_bufaccess.pyx
tests/errors/e_bufaccess.pyx
+2
-0
tests/errors/e_bufaccess2.pyx
tests/errors/e_bufaccess2.pyx
+2
-0
tests/errors/e_callnonfunction.pyx
tests/errors/e_callnonfunction.pyx
+2
-0
tests/errors/e_callspec.pyx
tests/errors/e_callspec.pyx
+2
-0
tests/errors/e_cdef_keywords_T241.pyx
tests/errors/e_cdef_keywords_T241.pyx
+3
-0
tests/errors/e_cdef_missing_declarator.pyx
tests/errors/e_cdef_missing_declarator.pyx
+2
-0
tests/errors/e_cdefassign.pyx
tests/errors/e_cdefassign.pyx
+2
-0
tests/errors/e_cdefemptysue.pyx
tests/errors/e_cdefemptysue.pyx
+2
-0
tests/errors/e_cenum.pyx
tests/errors/e_cenum.pyx
+2
-0
tests/errors/e_cmethbasematch.pyx
tests/errors/e_cmethbasematch.pyx
+2
-0
tests/errors/e_cmp.pyx
tests/errors/e_cmp.pyx
+2
-0
tests/errors/e_cstruct.pyx
tests/errors/e_cstruct.pyx
+2
-0
tests/errors/e_ctypedefforward.pyx
tests/errors/e_ctypedefforward.pyx
+2
-0
tests/errors/e_ctypedefornot.pyx
tests/errors/e_ctypedefornot.pyx
+2
-0
tests/errors/e_declarations.pyx
tests/errors/e_declarations.pyx
+2
-0
tests/errors/e_decorators.pyx
tests/errors/e_decorators.pyx
+1
-0
tests/errors/e_del.pyx
tests/errors/e_del.pyx
+2
-0
tests/errors/e_directives.pyx
tests/errors/e_directives.pyx
+1
-0
tests/errors/e_exceptclause.pyx
tests/errors/e_exceptclause.pyx
+1
-0
tests/errors/e_excvalfunctype.pyx
tests/errors/e_excvalfunctype.pyx
+2
-0
tests/errors/e_extweakref.pyx
tests/errors/e_extweakref.pyx
+2
-0
tests/errors/e_func_in_pxd.pyx
tests/errors/e_func_in_pxd.pyx
+2
-0
tests/errors/e_index.pyx
tests/errors/e_index.pyx
+2
-0
tests/errors/e_int_literals_py2.py
tests/errors/e_int_literals_py2.py
+1
-0
tests/errors/e_int_literals_py3.py
tests/errors/e_int_literals_py3.py
+1
-0
tests/errors/e_multass.pyx
tests/errors/e_multass.pyx
+2
-0
tests/errors/e_nargs.pyx
tests/errors/e_nargs.pyx
+2
-0
tests/errors/e_nogilcmeth.pyx
tests/errors/e_nogilcmeth.pyx
+2
-0
tests/errors/e_nogilfunctype.pyx
tests/errors/e_nogilfunctype.pyx
+2
-0
tests/errors/e_nosignword.pyx
tests/errors/e_nosignword.pyx
+2
-0
tests/errors/e_notnone.pyx
tests/errors/e_notnone.pyx
+2
-0
tests/errors/e_notnone2.pyx
tests/errors/e_notnone2.pyx
+2
-0
tests/errors/e_numop.pyx
tests/errors/e_numop.pyx
+2
-0
tests/errors/e_packedstruct_T290.pyx
tests/errors/e_packedstruct_T290.pyx
+3
-0
tests/errors/e_powop.pyx
tests/errors/e_powop.pyx
+2
-0
tests/errors/e_pxdimpl.pyx
tests/errors/e_pxdimpl.pyx
+2
-0
tests/errors/e_pyobinstruct.pyx
tests/errors/e_pyobinstruct.pyx
+2
-0
tests/errors/e_return.pyx
tests/errors/e_return.pyx
+2
-0
tests/errors/e_sizeofincomplete.pyx
tests/errors/e_sizeofincomplete.pyx
+2
-0
tests/errors/e_slice.pyx
tests/errors/e_slice.pyx
+2
-0
tests/errors/e_strcoerce.pyx
tests/errors/e_strcoerce.pyx
+2
-0
tests/errors/e_subop.pyx
tests/errors/e_subop.pyx
+2
-0
tests/errors/e_switch.pyx
tests/errors/e_switch.pyx
+2
-0
tests/errors/e_tempcast.pyx
tests/errors/e_tempcast.pyx
+2
-0
tests/errors/e_undefexttype.pyx
tests/errors/e_undefexttype.pyx
+2
-0
tests/errors/e_unop.pyx
tests/errors/e_unop.pyx
+2
-0
tests/errors/e_while.pyx
tests/errors/e_while.pyx
+2
-0
tests/errors/empty.pyx
tests/errors/empty.pyx
+1
-0
tests/errors/encoding.pyx
tests/errors/encoding.pyx
+1
-0
tests/errors/extclassattrsetting.pyx
tests/errors/extclassattrsetting.pyx
+2
-0
tests/errors/extended_unpacking.pyx
tests/errors/extended_unpacking.pyx
+1
-0
tests/errors/extended_unpacking_parser.pyx
tests/errors/extended_unpacking_parser.pyx
+1
-0
tests/errors/extended_unpacking_parser2.pyx
tests/errors/extended_unpacking_parser2.pyx
+1
-0
tests/errors/futurebraces.pyx
tests/errors/futurebraces.pyx
+2
-0
tests/errors/invalid_cast.pyx
tests/errors/invalid_cast.pyx
+2
-0
tests/errors/invalid_hex_escape0.pyx
tests/errors/invalid_hex_escape0.pyx
+1
-0
tests/errors/invalid_hex_escape1.pyx
tests/errors/invalid_hex_escape1.pyx
+1
-0
tests/errors/invalid_uescape.pyx
tests/errors/invalid_uescape.pyx
+1
-0
tests/errors/invalid_uescape0.pyx
tests/errors/invalid_uescape0.pyx
+1
-0
tests/errors/invalid_uescape2.pyx
tests/errors/invalid_uescape2.pyx
+1
-0
tests/errors/literal_lists.pyx
tests/errors/literal_lists.pyx
+2
-0
tests/errors/missing_baseclass_in_predecl_T262.pyx
tests/errors/missing_baseclass_in_predecl_T262.pyx
+3
-0
tests/errors/missing_self_in_cpdef_method_T156.pyx
tests/errors/missing_self_in_cpdef_method_T156.pyx
+2
-0
tests/errors/missing_self_in_cpdef_method_T165.pyx
tests/errors/missing_self_in_cpdef_method_T165.pyx
+2
-0
tests/errors/nogil.pyx
tests/errors/nogil.pyx
+2
-0
tests/errors/nogilcmeth.pyx
tests/errors/nogilcmeth.pyx
+2
-0
tests/errors/nogilfunctype.pyx
tests/errors/nogilfunctype.pyx
+2
-0
tests/errors/nonconst_def.pyx
tests/errors/nonconst_def.pyx
+2
-0
tests/errors/notcimportedT418.pyx
tests/errors/notcimportedT418.pyx
+3
-0
tests/errors/pxd_cdef_class_declaration_T286.pyx
tests/errors/pxd_cdef_class_declaration_T286.pyx
+3
-0
tests/errors/py_ucs4_type_errors.pyx
tests/errors/py_ucs4_type_errors.pyx
+1
-0
tests/errors/py_unicode_type_errors.pyx
tests/errors/py_unicode_type_errors.pyx
+1
-0
tests/errors/pyobjcastdisallow_T313.pyx
tests/errors/pyobjcastdisallow_T313.pyx
+2
-0
tests/errors/return_outside_function_T135.pyx
tests/errors/return_outside_function_T135.pyx
+2
-0
tests/errors/se_badindent.pyx
tests/errors/se_badindent.pyx
+2
-0
tests/errors/se_badindent2.pyx
tests/errors/se_badindent2.pyx
+2
-0
tests/errors/se_mixtabspace.pyx
tests/errors/se_mixtabspace.pyx
+2
-0
tests/errors/se_multass.pyx
tests/errors/se_multass.pyx
+2
-0
tests/errors/string_assignments.pyx
tests/errors/string_assignments.pyx
+1
-0
tests/errors/subtyping_final_class.pyx
tests/errors/subtyping_final_class.pyx
+1
-0
tests/errors/tree_assert.pyx
tests/errors/tree_assert.pyx
+1
-0
tests/errors/typoT304.pyx
tests/errors/typoT304.pyx
+2
-0
tests/errors/undefinedname.pyx
tests/errors/undefinedname.pyx
+2
-0
tests/errors/void_as_arg.pyx
tests/errors/void_as_arg.pyx
+2
-0
tests/run/always_allow_keywords_T295.pyx
tests/run/always_allow_keywords_T295.pyx
+2
-0
tests/run/args_unpacking_in_closure_T658.pyx
tests/run/args_unpacking_in_closure_T658.pyx
+1
-0
tests/run/autotestdict_skip.pyx
tests/run/autotestdict_skip.pyx
+1
-0
tests/run/bad_c_struct_T252.pyx
tests/run/bad_c_struct_T252.pyx
+2
-0
tests/run/bint_binop_T145.pyx
tests/run/bint_binop_T145.pyx
+1
-0
tests/run/bint_property_T354.pyx
tests/run/bint_property_T354.pyx
+1
-0
tests/run/bound_builtin_methods_T589.pyx
tests/run/bound_builtin_methods_T589.pyx
+1
-0
tests/run/builtin_py3.pyx
tests/run/builtin_py3.pyx
+2
-0
tests/run/builtin_type_inheritance_T608.pyx
tests/run/builtin_type_inheritance_T608.pyx
+1
-0
tests/run/builtin_types_none_T166.pyx
tests/run/builtin_types_none_T166.pyx
+2
-0
tests/run/c_int_types_T255.pyx
tests/run/c_int_types_T255.pyx
+2
-0
tests/run/c_type_methods_T236.pyx
tests/run/c_type_methods_T236.pyx
+1
-0
tests/run/cascaded_list_unpacking_T467.pyx
tests/run/cascaded_list_unpacking_T467.pyx
+1
-0
tests/run/cascaded_typed_assignments_T466.pyx
tests/run/cascaded_typed_assignments_T466.pyx
+1
-0
tests/run/cdef_bool_T227.pyx
tests/run/cdef_bool_T227.pyx
+2
-0
tests/run/cdef_decorator_directives_T183.pyx
tests/run/cdef_decorator_directives_T183.pyx
+2
-0
tests/run/cdef_locals_decorator_T477.pyx
tests/run/cdef_locals_decorator_T477.pyx
+2
-0
tests/run/cdef_members_T517.pyx
tests/run/cdef_members_T517.pyx
+2
-0
tests/run/cdef_methods_T462.pyx
tests/run/cdef_methods_T462.pyx
+1
-0
tests/run/cdef_setitem_T284.pyx
tests/run/cdef_setitem_T284.pyx
+2
-0
tests/run/cfunc_call_tuple_args_T408.pyx
tests/run/cfunc_call_tuple_args_T408.pyx
+2
-0
tests/run/char_constants_T99.pyx
tests/run/char_constants_T99.pyx
+2
-0
tests/run/charcomparisonT412.pyx
tests/run/charcomparisonT412.pyx
+2
-0
tests/run/charptr_comparison_T582.pyx
tests/run/charptr_comparison_T582.pyx
+1
-0
tests/run/cimport_cython_T505.pyx
tests/run/cimport_cython_T505.pyx
+2
-0
tests/run/class_attribute_init_values_T18.pyx
tests/run/class_attribute_init_values_T18.pyx
+2
-0
tests/run/class_func_in_control_structures_T87.pyx
tests/run/class_func_in_control_structures_T87.pyx
+1
-0
tests/run/classdecorators_T336.pyx
tests/run/classdecorators_T336.pyx
+2
-0
tests/run/closure_class_T596.pyx
tests/run/closure_class_T596.pyx
+2
-0
tests/run/closure_decorators_T478.pyx
tests/run/closure_decorators_T478.pyx
+2
-0
tests/run/closure_inside_cdef_T554.pyx
tests/run/closure_inside_cdef_T554.pyx
+2
-0
tests/run/closure_name_mangling_T537.pyx
tests/run/closure_name_mangling_T537.pyx
+1
-0
tests/run/closures_T82.pyx
tests/run/closures_T82.pyx
+1
-0
tests/run/complex_cast_T445.pyx
tests/run/complex_cast_T445.pyx
+2
-0
tests/run/complex_int_T446.pyx
tests/run/complex_int_T446.pyx
+2
-0
tests/run/complex_numbers_T305.pyx
tests/run/complex_numbers_T305.pyx
+2
-0
tests/run/complex_numbers_c89_T398.pyx
tests/run/complex_numbers_c89_T398.pyx
+2
-0
tests/run/complex_numbers_c99_T398.pyx
tests/run/complex_numbers_c99_T398.pyx
+2
-0
tests/run/complex_numbers_cxx_T398.pyx
tests/run/complex_numbers_cxx_T398.pyx
+2
-0
tests/run/contains_T455.pyx
tests/run/contains_T455.pyx
+2
-0
tests/run/cpdef_temps_T411.pyx
tests/run/cpdef_temps_T411.pyx
+2
-0
tests/run/cpp_bool.pyx
tests/run/cpp_bool.pyx
+2
-0
tests/run/cpp_classes.pyx
tests/run/cpp_classes.pyx
+2
-0
tests/run/cpp_exceptions.pyx
tests/run/cpp_exceptions.pyx
+2
-0
tests/run/cpp_exceptions_nogil.pyx
tests/run/cpp_exceptions_nogil.pyx
+2
-0
tests/run/cpp_namespaces.pyx
tests/run/cpp_namespaces.pyx
+2
-0
tests/run/cpp_nested_templates.pyx
tests/run/cpp_nested_templates.pyx
+2
-0
tests/run/cpp_nonstdint.pyx
tests/run/cpp_nonstdint.pyx
+2
-0
tests/run/cpp_operators.pyx
tests/run/cpp_operators.pyx
+2
-0
tests/run/cpp_stl.pyx
tests/run/cpp_stl.pyx
+2
-0
tests/run/cpp_stl_vector.pyx
tests/run/cpp_stl_vector.pyx
+2
-0
tests/run/cpp_templates.pyx
tests/run/cpp_templates.pyx
+2
-0
tests/run/crashT245.pyx
tests/run/crashT245.pyx
+2
-0
tests/run/ctypedef_int_types_T333.pyx
tests/run/ctypedef_int_types_T333.pyx
+1
-0
tests/run/decorators_T593.pyx
tests/run/decorators_T593.pyx
+2
-0
tests/run/division_T384.pyx
tests/run/division_T384.pyx
+2
-0
tests/run/ellipsis_T488.pyx
tests/run/ellipsis_T488.pyx
+2
-0
tests/run/empty_for_loop_T208.pyx
tests/run/empty_for_loop_T208.pyx
+2
-0
tests/run/enumerate_T316.pyx
tests/run/enumerate_T316.pyx
+2
-0
tests/run/ext_instance_type_T232.pyx
tests/run/ext_instance_type_T232.pyx
+2
-0
tests/run/extended_unpacking_T235.pyx
tests/run/extended_unpacking_T235.pyx
+2
-0
tests/run/extended_unpacking_T409.pyx
tests/run/extended_unpacking_T409.pyx
+2
-0
tests/run/extern_builtins_T258.pyx
tests/run/extern_builtins_T258.pyx
+2
-0
tests/run/float_floor_division_T260.pyx
tests/run/float_floor_division_T260.pyx
+2
-0
tests/run/float_len_T480.pyx
tests/run/float_len_T480.pyx
+2
-0
tests/run/for_from_float_T254.pyx
tests/run/for_from_float_T254.pyx
+2
-0
tests/run/for_from_pyvar_loop_T601.pyx
tests/run/for_from_pyvar_loop_T601.pyx
+1
-0
tests/run/for_in_break_continue_T533.pyx
tests/run/for_in_break_continue_T533.pyx
+1
-0
tests/run/for_in_range_T372.pyx
tests/run/for_in_range_T372.pyx
+2
-0
tests/run/funcexc_iter_T228.pyx
tests/run/funcexc_iter_T228.pyx
+2
-0
tests/run/function_as_method_T494.pyx
tests/run/function_as_method_T494.pyx
+2
-0
tests/run/function_binding_T494.pyx
tests/run/function_binding_T494.pyx
+2
-0
tests/run/genexpr_T491.pyx
tests/run/genexpr_T491.pyx
+1
-0
tests/run/genexpr_iterable_lookup_T600.pyx
tests/run/genexpr_iterable_lookup_T600.pyx
+1
-0
tests/run/hash_T326.pyx
tests/run/hash_T326.pyx
+2
-0
tests/run/ifelseexpr_T267.pyx
tests/run/ifelseexpr_T267.pyx
+2
-0
tests/run/in_list_with_side_effects_T544.pyx
tests/run/in_list_with_side_effects_T544.pyx
+1
-0
tests/run/int_float_builtins_as_casts_T400.pyx
tests/run/int_float_builtins_as_casts_T400.pyx
+1
-0
tests/run/intern_T431.pyx
tests/run/intern_T431.pyx
+2
-0
tests/run/ipow_crash_T562.pyx
tests/run/ipow_crash_T562.pyx
+2
-0
tests/run/lambda_T195.pyx
tests/run/lambda_T195.pyx
+2
-0
tests/run/lambda_class_T605.pyx
tests/run/lambda_class_T605.pyx
+2
-0
tests/run/lambda_module_T603.pyx
tests/run/lambda_module_T603.pyx
+2
-0
tests/run/large_consts_T237.pyx
tests/run/large_consts_T237.pyx
+1
-0
tests/run/list_comp_in_closure_T598.pyx
tests/run/list_comp_in_closure_T598.pyx
+1
-0
tests/run/locals_expressions_T430.pyx
tests/run/locals_expressions_T430.pyx
+2
-0
tests/run/locals_rebind_T429.pyx
tests/run/locals_rebind_T429.pyx
+2
-0
tests/run/method_module_name_T422.pyx
tests/run/method_module_name_T422.pyx
+2
-0
tests/run/methodmangling_T5.pyx
tests/run/methodmangling_T5.pyx
+1
-0
tests/run/non_dict_kwargs_T470.pyx
tests/run/non_dict_kwargs_T470.pyx
+2
-0
tests/run/numpy_ValueError_T172.pyx
tests/run/numpy_ValueError_T172.pyx
+3
-0
tests/run/numpy_bufacc_T155.pyx
tests/run/numpy_bufacc_T155.pyx
+3
-0
tests/run/numpy_cimport.pyx
tests/run/numpy_cimport.pyx
+2
-0
tests/run/numpy_test.pyx
tests/run/numpy_test.pyx
+1
-0
tests/run/packedstruct_T290.pyx
tests/run/packedstruct_T290.pyx
+2
-0
tests/run/parallel_swap_assign_T425.pyx
tests/run/parallel_swap_assign_T425.pyx
+2
-0
tests/run/pyfunction_redefine_T489.pyx
tests/run/pyfunction_redefine_T489.pyx
+2
-0
tests/run/pyobjcast_T313.pyx
tests/run/pyobjcast_T313.pyx
+1
-0
tests/run/raise_memory_error_T650.pyx
tests/run/raise_memory_error_T650.pyx
+1
-0
tests/run/range_optimisation_T203.pyx
tests/run/range_optimisation_T203.pyx
+2
-0
tests/run/refcount_in_meth.pyx
tests/run/refcount_in_meth.pyx
+1
-0
tests/run/short_circuit_T404.pyx
tests/run/short_circuit_T404.pyx
+2
-0
tests/run/special_methods_T561.pyx
tests/run/special_methods_T561.pyx
+1
-0
tests/run/special_methods_T561_py2.pyx
tests/run/special_methods_T561_py2.pyx
+2
-0
tests/run/special_methods_T561_py3.pyx
tests/run/special_methods_T561_py3.pyx
+2
-0
tests/run/ssize_t_T399.pyx
tests/run/ssize_t_T399.pyx
+2
-0
tests/run/starred_target_T664.pyx
tests/run/starred_target_T664.pyx
+2
-0
tests/run/str_char_coercion_T412.pyx
tests/run/str_char_coercion_T412.pyx
+2
-0
tests/run/temp_alloc_T409.pyx
tests/run/temp_alloc_T409.pyx
+1
-0
tests/run/temp_sideeffects_T654.pyx
tests/run/temp_sideeffects_T654.pyx
+1
-0
tests/run/tp_new_T454.pyx
tests/run/tp_new_T454.pyx
+1
-0
tests/run/tupleunpack_T298.pyx
tests/run/tupleunpack_T298.pyx
+2
-0
tests/run/type_slots_int_long_T287.pyx
tests/run/type_slots_int_long_T287.pyx
+2
-0
tests/run/typeddefaultargT373.pyx
tests/run/typeddefaultargT373.pyx
+2
-0
tests/run/typedfieldbug_T303.pyx
tests/run/typedfieldbug_T303.pyx
+2
-0
tests/run/typetest_T417.pyx
tests/run/typetest_T417.pyx
+1
-0
tests/run/unsigned_char_ptr_bytes_conversion_T359.pyx
tests/run/unsigned_char_ptr_bytes_conversion_T359.pyx
+2
-0
tests/run/unsignedbehaviour_T184.pyx
tests/run/unsignedbehaviour_T184.pyx
+2
-0
tests/run/with_statement_module_level_T536.pyx
tests/run/with_statement_module_level_T536.pyx
+1
-0
tests/wrappers/cpp_overload_wrapper.pyx
tests/wrappers/cpp_overload_wrapper.pyx
+1
-0
tests/wrappers/cpp_references.pyx
tests/wrappers/cpp_references.pyx
+2
-0
No files found.
tests/compile/a_capi.pyx
View file @
c8665b07
# mode: compile
cdef
public
struct
Foo
:
int
a
,
b
...
...
tests/compile/argdefault.pyx
View file @
c8665b07
# mode: compile
cdef
swallow
def
spam
(
w
,
int
x
=
42
,
y
=
"grail"
,
z
=
swallow
):
...
...
tests/compile/arrayargs.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
*
:
...
...
tests/compile/arrayptrcompat.pyx
View file @
c8665b07
# mode: compile
cdef
enum
E
:
z
...
...
tests/compile/arraytoptrarg.pyx
View file @
c8665b07
# mode: compile
cdef
void
f1
(
char
*
argv
[]):
f2
(
argv
)
...
...
tests/compile/ass2longlong.pyx
View file @
c8665b07
# mode: compile
cdef
void
spam
():
cdef
long
long
L
cdef
unsigned
long
long
U
...
...
tests/compile/assert2.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
):
assert
a
,
a
+
b
tests/compile/behnel4.pyx
View file @
c8665b07
# mode: compile
cdef
enum
E
:
spam
,
eggs
...
...
tests/compile/belchenko1.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
*
:
ctypedef
int
intptr_t
...
...
tests/compile/bufaccess_noassignT444.pyx
View file @
c8665b07
# ticket: 444
# mode: compile
def
test
():
cdef
object
[
int
]
not_assigned_to
...
...
tests/compile/builtin.pyx
View file @
c8665b07
# mode: compile
def
f
():
x
=
open
(
"foo"
)
tests/compile/builtinfuncs.pyx
View file @
c8665b07
# mode: compile
cdef
int
f
()
except
-
1
:
cdef
object
x
,
y
,
z
,
w
cdef
int
i
...
...
tests/compile/c_directives.pyx
View file @
c8665b07
# mode: compile
# cython: boundscheck = False
# cython: ignoreme = OK
# cython: warn.undeclared = False
...
...
tests/compile/callingconvention.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"callingconvention.h"
:
pass
...
...
tests/compile/cargdef.pyx
View file @
c8665b07
# mode: compile
def
f
(
obj
,
int
i
,
float
f
,
char
*
s1
,
char
s2
[]):
pass
...
...
tests/compile/carrdecl.pyx
View file @
c8665b07
# mode: compile
cdef
extern
:
cdef
func
(
int
[])
tests/compile/cascmp.pyx
View file @
c8665b07
# mode: compile
cdef
void
foo
():
cdef
int
bool
,
int1
=
0
,
int2
=
0
,
int3
=
0
,
int4
=
0
cdef
object
obj1
,
obj2
,
obj3
,
obj4
...
...
tests/compile/cassign.pyx
View file @
c8665b07
# mode: compile
cdef
void
foo
():
cdef
int
i1
,
i2
=
0
cdef
char
c1
=
0
,
c2
...
...
tests/compile/cast_ctypedef_array_T518.pyx
View file @
c8665b07
# ticket: 518
# mode: compile
cdef
extern
from
"cast_ctypedef_array_T518_helper.h"
:
cdef
struct
__foo_struct
:
int
i
,
j
...
...
tests/compile/casttoexttype.pyx
View file @
c8665b07
# mode: compile
cdef
extern
class
external
.
Spam
:
pass
...
...
tests/compile/cdefexternempty.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"cheese.h"
:
pass
tests/compile/cdefexternfromstar.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
*
:
int
spam
tests/compile/cenum.pyx
View file @
c8665b07
# mode: compile
cdef
enum
Spam
:
a
b
,
c
,
...
...
tests/compile/cforfromloop.pyx
View file @
c8665b07
# mode: compile
cdef
int
i
,
j
,
k
cdef
object
a
,
b
,
x
...
...
tests/compile/cimport_package_module_T4.pyx
View file @
c8665b07
# ticket: 4
# mode: compile
from
a
cimport
b
cdef
int
**
t
=
b
.
foo
(
NULL
)
tests/compile/cimportfrom_T248.pyx
View file @
c8665b07
# ticket: 248
# mode: compile
from
ewing8
cimport
(
Foo
,
...
...
tests/compile/classmethargdefault.pyx
View file @
c8665b07
# mode: compile
__doc__
=
u"""
>>> s = Swallow()
>>> s.spam(1)
...
...
tests/compile/cnamespec.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"cnamespec.h"
:
int
a
"c_a"
,
b
"c_b"
...
...
tests/compile/cnumop.pyx
View file @
c8665b07
# mode: compile
def
f
():
cdef
int
int1
,
int2
=
0
,
int3
=
1
cdef
char
char1
=
0
...
...
tests/compile/coercetovoidptr.pyx
View file @
c8665b07
# mode: compile
cdef
void
f
():
cdef
void
*
p
cdef
char
*
q
=
NULL
...
...
tests/compile/complexbasetype.pyx
View file @
c8665b07
# mode: compile
cdef
extern
(
int
*
[
42
])
spam
,
grail
,
swallow
cdef
(
int
(
*
)())
brian
():
...
...
tests/compile/constexpr.pyx
View file @
c8665b07
# mode: compile
cdef
enum
Grail
:
k
=
42
...
...
tests/compile/coventry1.pyx
View file @
c8665b07
# mode: compile
cdef
class
Tst
:
cdef
foo
,
tests/compile/cpdef.pyx
View file @
c8665b07
# mode: compile
cdef
class
A
:
cpdef
a
(
self
):
ma
(
self
)
...
...
tests/compile/cpp_enums.pyx
View file @
c8665b07
# tag: cpp
# mode: compile
cdef
extern
from
"cpp_enums.h"
:
cdef
enum
Enum1
:
Item1
...
...
tests/compile/cpp_operators.pyx
View file @
c8665b07
# tag: cpp
# mode: compile
cdef
extern
from
"operators.h"
:
cdef
cppclass
Operators
:
Operators
(
int
)
...
...
tests/compile/cpp_structs.pyx
View file @
c8665b07
# tag: cpp
# mode: compile
cdef
extern
from
"point.h"
namespace
"geometry"
:
cdef
struct
Point
:
...
...
tests/compile/cpp_templated_ctypedef.pyx
View file @
c8665b07
# tag: cpp
# mode: compile
cdef
extern
from
*
:
cdef
cppclass
Foo
[
T
]:
pass
...
...
tests/compile/cpp_templates.pyx
View file @
c8665b07
# tag: cpp
# mode: compile
cdef
extern
from
"templates.h"
:
cdef
cppclass
TemplateTest1
[
T
]:
TemplateTest1
()
...
...
tests/compile/cstructreturn.pyx
View file @
c8665b07
# mode: compile
ctypedef
struct
Foo
:
int
blarg
...
...
tests/compile/ctypedef.pyx
View file @
c8665b07
# mode: compile
ctypedef
int
*
IntPtr
ctypedef
unsigned
long
ULong
cdef
extern
IntPtr
spam
...
...
tests/compile/ctypedef_public_class_T355.pyx
View file @
c8665b07
# ticket: 355
# mode: compile
ctypedef
public
class
Time
[
type
MyTime_Type
,
object
MyTimeObject
]:
def
__init__
(
self
,
seconds
):
self
.
seconds
=
seconds
...
...
tests/compile/ctypedefclass.pyx
View file @
c8665b07
# mode: compile
ctypedef
class
spam
:
pass
...
...
tests/compile/ctypedefenum.pyx
View file @
c8665b07
# mode: compile
ctypedef
enum
parrot_state
:
alive
=
1
dead
=
2
...
...
tests/compile/ctypedefpubapi.pyx
View file @
c8665b07
# mode: compile
ctypedef
public
api
class
Foo
[
type
PyFoo_Type
,
object
PyFooObject
]:
pass
...
...
tests/compile/ctypedefstruct.pyx
View file @
c8665b07
# mode: compile
ctypedef
struct
order
:
int
spam
int
eggs
...
...
tests/compile/ctypedefunion.pyx
View file @
c8665b07
# mode: compile
ctypedef
union
pet
:
int
cat
float
dog
...
...
tests/compile/cunsignedlong.pyx
View file @
c8665b07
# mode: compile
cdef
void
f
():
cdef
unsigned
long
x
cdef
object
y
=
0
...
...
tests/compile/cverylongtypes.pyx
View file @
c8665b07
# mode: compile
cdef
extern
short
int
s
cdef
extern
long
int
l
cdef
extern
long
long
ll
...
...
tests/compile/declandimpl.pyx
View file @
c8665b07
# mode: compile
cdef
class
Tomato
:
def
eject
(
self
):
...
...
tests/compile/declarations.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"declarations.h"
:
pass
...
...
tests/compile/del.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
):
global
g
del
g
...
...
tests/compile/delslice.pyx
View file @
c8665b07
# mode: compile
cdef
void
spam
():
cdef
object
x
del
x
[
17
:
42
]
...
...
tests/compile/docstrings.pyx
View file @
c8665b07
# mode: compile
"Welcome to the parrot module. It is currently resting."
def
zap
(
polly
,
volts
):
...
...
tests/compile/doda1.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
pass
...
...
tests/compile/dotted_cimport.pyx
View file @
c8665b07
# mode: compile
cimport
dotted_cimport_submodule.a
import
dotted_cimport_submodule.b
tests/compile/drake1.pyx
View file @
c8665b07
# mode: compile
cdef
char
*
s
s
=
r'\"HT\"'
tests/compile/ellipsis_T488.pyx
View file @
c8665b07
# ticket: 488
# mode: compile
#from ... import foo
print
...
...
...
tests/compile/emptytry.pyx
View file @
c8665b07
# mode: compile
cdef
void
f
():
try
:
pass
...
...
tests/compile/enumintcompat.pyx
View file @
c8665b07
# mode: compile
cdef
enum
E
:
a
...
...
tests/compile/eqcmp.pyx
View file @
c8665b07
# mode: compile
cdef
void
foo
():
cdef
int
bool
,
int1
=
0
,
int2
=
0
cdef
float
float1
=
0
,
float2
=
0
...
...
tests/compile/ewing1.pyx
View file @
c8665b07
# mode: compile
cdef
int
blarg
(
int
i
):
pass
...
...
tests/compile/ewing3.pyx
View file @
c8665b07
# mode: compile
cdef
class
C
:
cdef
f
(
self
):
pass
tests/compile/ewing4.pyx
View file @
c8665b07
# mode: compile
cdef
void
f
():
"This is a pseudo doc string."
...
...
tests/compile/ewing5.pyx
View file @
c8665b07
# mode: compile
cdef
char
*
f
():
raise
Exception
...
...
tests/compile/ewing6.pyx
View file @
c8665b07
# mode: compile
# Spurious gcc3.3 warnings about incompatible pointer
# types passed to C method
...
...
tests/compile/ewing7.pyx
View file @
c8665b07
# mode: compile
cdef
class
A
:
cdef
void
f
(
self
,
x
):
pass
...
...
tests/compile/ewing8.pyx
View file @
c8665b07
# mode: compile
cdef
class
Blarg
:
pass
tests/compile/ewing9.pyx
View file @
c8665b07
# mode: compile
cdef
struct
xmlDoc
:
int
i
tests/compile/excvalcheck.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"excvalcheck.h"
:
pass
...
...
tests/compile/excvaldecl.pyx
View file @
c8665b07
# mode: compile
cdef
int
spam
()
except
42
:
pass
...
...
tests/compile/excvalreturn.pyx
View file @
c8665b07
# mode: compile
cdef
int
spam
()
except
-
1
:
eggs
=
42
...
...
tests/compile/extargdefault.pyx
View file @
c8665b07
# mode: compile
cdef
extern
class
somewhere
.
Swallow
:
pass
...
...
tests/compile/extcmethcall.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
cdef
int
tons
...
...
tests/compile/extcoerce.pyx
View file @
c8665b07
# mode: compile
cdef
class
Grail
:
def
__add__
(
int
x
,
float
y
):
...
...
tests/compile/extdelattr.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__delattr__
(
self
,
n
):
...
...
tests/compile/extdelitem.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__delitem__
(
self
,
i
):
...
...
tests/compile/extdelslice.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__delslice__
(
self
,
Py_ssize_t
i
,
Py_ssize_t
j
):
...
...
tests/compile/extdescrdel.pyx
View file @
c8665b07
# mode: compile
cdef
class
Foo
:
def
__delete__
(
self
,
i
):
...
...
tests/compile/extdescrget.pyx
View file @
c8665b07
# mode: compile
cdef
class
Foo
:
def
__get__
(
self
,
i
,
c
):
...
...
tests/compile/extdescrset.pyx
View file @
c8665b07
# mode: compile
cdef
class
Foo
:
def
__set__
(
self
,
i
,
v
):
...
...
tests/compile/extern.pyx
View file @
c8665b07
# mode: compile
cdef
extern
int
i
cdef
extern
char
*
s
[]
cdef
extern
void
spam
(
char
c
)
...
...
tests/compile/extexttype.pyx
View file @
c8665b07
# mode: compile
cdef
extern
class
external
.
Spam
[
object
SpamObject
]:
pass
...
...
tests/compile/extforward.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
cdef
class
Grail
:
...
...
tests/compile/extgetattr.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__getattr__
(
self
,
x
):
...
...
tests/compile/extgetitem.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__getitem__
(
self
,
x
):
...
...
tests/compile/exthash.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__hash__
(
self
):
...
...
tests/compile/extimported.pyx
View file @
c8665b07
# mode: compile
cdef
extern
class
Spam
.
Eggs
.
Ham
:
pass
...
...
tests/compile/extimportedsubtype.pyx
View file @
c8665b07
# mode: compile
from
crunchytype
cimport
Crunchy
cdef
class
Sub2
(
Crunchy
):
...
...
tests/compile/extindex.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__index__
(
self
):
...
...
tests/compile/extinheritdel.pyx
View file @
c8665b07
# mode: compile
cdef
class
Parrot
:
pass
...
...
tests/compile/extinheritset.pyx
View file @
c8665b07
# mode: compile
cdef
class
Parrot
:
pass
...
...
tests/compile/extpropertyall.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
property
eggs
:
...
...
tests/compile/extpropertydel.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
property
eggs
:
...
...
tests/compile/extpropertydoc.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
property
eggs
:
...
...
tests/compile/extpropertyget.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
property
eggs
:
...
...
tests/compile/extpropertyset.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
property
eggs
:
...
...
tests/compile/extpymemberdef.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
cdef
public
char
c
cdef
public
int
i
...
...
tests/compile/extsetattr.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__setattr__
(
self
,
n
,
x
):
...
...
tests/compile/extsetitem.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__setitem__
(
self
,
i
,
x
):
...
...
tests/compile/extsetslice.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
def
__setslice__
(
self
,
Py_ssize_t
i
,
Py_ssize_t
j
,
x
):
...
...
tests/compile/first_assignment.pyx
View file @
c8665b07
# mode: compile
cimport
cython
...
...
tests/compile/for.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
,
c
):
cdef
int
i
for
a
in
b
:
...
...
tests/compile/forfromelse.pyx
View file @
c8665b07
# mode: compile
cdef
void
spam
():
cdef
int
i
,
j
=
0
,
k
=
0
for
i
from
0
<=
i
<
10
:
...
...
tests/compile/formfeed.pyx
View file @
c8665b07
# mode: compile
cdef
int
x
x
=
42
...
...
tests/compile/fromimport.pyx
View file @
c8665b07
# mode: compile
def
f
():
from
spam
import
eggs
from
spam.morespam
import
bacon
,
eggs
,
ham
...
...
tests/compile/funcptr.pyx
View file @
c8665b07
# mode: compile
cdef
int
grail
():
cdef
int
(
*
spam
)()
spam
=
&
grail
...
...
tests/compile/gencall.pyx
View file @
c8665b07
# mode: compile
def
f
(
x
,
y
):
x
=
y
...
...
tests/compile/globalonly.pyx
View file @
c8665b07
# mode: compile
global
__name__
print
__name__
tests/compile/globalstmt.pyx
View file @
c8665b07
# mode: compile
def
f
():
global
a
,
b
,
c
,
d
a
=
b
...
...
tests/compile/globvardef.pyx
View file @
c8665b07
# mode: compile
cdef
int
a_global_int
cdef
a_global_pyobject
...
...
tests/compile/gustafsson2.pyx
View file @
c8665b07
# mode: compile
ctypedef
enum
someenum_t
:
ENUMVALUE_1
ENUMVALUE_2
...
...
tests/compile/hinsen2.pyx
View file @
c8665b07
# mode: compile
cdef
class
vector
:
def
__div__
(
vector
self
,
double
factor
):
cdef
object
result
=
vector
()
...
...
tests/compile/huss2.pyx
View file @
c8665b07
# mode: compile
cdef
enum
Color
:
red
white
...
...
tests/compile/ia_cdefblock.pyx
View file @
c8665b07
# mode: compile
cdef
:
struct
PrivFoo
:
...
...
tests/compile/import.pyx
View file @
c8665b07
# mode: compile
def
f
():
import
spam
import
spam.eggs
...
...
tests/compile/index.pyx
View file @
c8665b07
# mode: compile
def
f
(
obj1
,
obj2
,
obj3
):
cdef
int
int1
,
int2
=
0
,
int3
=
0
cdef
float
flt1
,
*
ptr1
=
NULL
...
...
tests/compile/indices.pyx
View file @
c8665b07
# mode: compile
cdef
int
*
a
cdef
object
x
...
...
tests/compile/ishimoto1.pyx
View file @
c8665b07
# mode: compile
cdef
class
A
:
def
__getitem__
(
self
,
x
):
...
...
tests/compile/ishimoto4.pyx
View file @
c8665b07
# mode: compile
cdef
void
__stdcall
f
():
pass
...
...
tests/compile/jiba3.pyx
View file @
c8665b07
# mode: compile
cdef
class
Position
cdef
class
Point
(
Position
)
cdef
class
Vector
(
Point
)
...
...
tests/compile/jiba4.pyx
View file @
c8665b07
# mode: compile
cdef
class
A
:
cdef
object
x
tests/compile/jiba5.pyx
View file @
c8665b07
# mode: compile
def
f
():
cdef
int
i
=
0
global
mylist
...
...
tests/compile/jiba6.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"string.h"
:
void
memcpy
(
void
*
des
,
void
*
src
,
int
size
)
...
...
tests/compile/johnson1.pyx
View file @
c8665b07
# mode: compile
ctypedef
enum
foo
:
FOO
...
...
tests/compile/johnson2.pyx
View file @
c8665b07
# mode: compile
cdef
class
C
:
cdef
object
foo
...
...
tests/compile/khavkine1.pyx
View file @
c8665b07
# mode: compile
cdef
class
T
:
cdef
int
a
[
1
]
...
...
tests/compile/kleckner1.pyx
View file @
c8665b07
# mode: compile
def
f
(
x
,):
pass
...
...
tests/compile/lepage_2.pyx
View file @
c8665b07
# mode: compile
ctypedef
struct
BB
:
void
(
*
f
)
(
void
*
state
)
tests/compile/libc_all.pyx
View file @
c8665b07
# mode: compile
cimport
libc
cimport
libc.stdio
...
...
tests/compile/libc_errno.pyx
View file @
c8665b07
# mode: compile
from
libc.errno
cimport
*
if
errno
==
EDOM
:
pass
...
...
tests/compile/libc_math.pyx
View file @
c8665b07
# mode: compile
from
libc.math
cimport
(
M_E
,
M_LOG2E
,
M_LOG10E
,
M_LN2
,
M_LN10
,
M_PI
,
M_PI_2
,
M_PI_4
,
M_1_PI
,
M_2_PI
,
M_2_SQRTPI
,
M_SQRT2
,
M_SQRT1_2
)
from
libc.math
cimport
(
acos
,
asin
,
atan
,
atan2
,
cos
,
sin
,
tan
,
cosh
,
sinh
,
...
...
tests/compile/libc_signal.pyx
View file @
c8665b07
# mode: compile
from
libc.signal
cimport
*
cdef
void
sighdl
(
int
signum
)
nogil
:
...
...
tests/compile/longunsigned.pyx
View file @
c8665b07
# mode: compile
cdef
extern
unsigned
long
x
cdef
extern
long
unsigned
y
tests/compile/magcmp.pyx
View file @
c8665b07
# mode: compile
cdef
void
foo
():
cdef
int
bool
,
int1
=
0
,
int2
=
0
bool
=
int1
<
int2
...
...
tests/compile/msvc_strings.pyx
View file @
c8665b07
# mode: compile
"""A long module docstring.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sit amet
...
...
tests/compile/nogil.pyx
View file @
c8665b07
# mode: compile
cdef
extern
object
g
(
object
x
)
nogil
cdef
extern
void
g2
(
object
x
)
nogil
...
...
tests/compile/nonctypedefclass.pyx
View file @
c8665b07
# mode: compile
cdef
class
spam
:
pass
...
...
tests/compile/none.pyx
View file @
c8665b07
# mode: compile
cdef
void
spam
():
eggs
=
None
...
...
tests/compile/notnonearg.pyx
View file @
c8665b07
# mode: compile
cdef
extern
class
external
.
Spam
[
object
Spam
]:
pass
cdef
extern
class
external
.
Eggs
[
object
Eggs
]:
pass
...
...
tests/compile/nullptr.pyx
View file @
c8665b07
# mode: compile
cdef
char
*
p1
cdef
int
*
p2
cdef
int
x
...
...
tests/compile/omittedargnames.pyx
View file @
c8665b07
# mode: compile
cdef
extern
void
spam
(
int
,
char
*
)
tests/compile/pinard4.pyx
View file @
c8665b07
# mode: compile
__doc__
=
u"""
>>> fiches_CP
[]
...
...
tests/compile/posix_pxds.pyx
View file @
c8665b07
# mode: compile
cimport
posix
cimport
posix.unistd
...
...
tests/compile/publicapi_api.pyx
View file @
c8665b07
# mode: compile
# --
ctypedef
int
Int0
...
...
tests/compile/publicapi_mix.pyx
View file @
c8665b07
# mode: compile
# --
ctypedef
int
Int0
...
...
tests/compile/publicapi_pub.pyx
View file @
c8665b07
# mode: compile
# --
ctypedef
int
Int0
...
...
tests/compile/publicapi_pxd_mix.pyx
View file @
c8665b07
# mode: compile
cdef
class
Foo1
:
pass
cdef
class
Foo2
:
pass
cdef
class
Foo3
:
pass
...
...
tests/compile/pxd_override_T230.py
View file @
c8665b07
# mode: compile
class
A
:
def
foo
(
self
):
return
"A"
...
...
tests/compile/pyclass.pyx
View file @
c8665b07
# mode: compile
class
Spam
:
def
eggs
(
self
):
...
...
tests/compile/pylong.pyx
View file @
c8665b07
# mode: compile
cdef
extern
from
"Python.h"
:
ctypedef
struct
PyTypeObject
:
pass
...
...
tests/compile/r_pernici1.pyx
View file @
c8665b07
# mode: compile
__doc__
=
u"""
>>> main()
3.14159265358979323846
...
...
tests/compile/signedtypes.pyx
View file @
c8665b07
# mode: compile
cdef
struct
S
:
char
c
unsigned
char
uc
...
...
tests/compile/slicex.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
):
a
=
b
[
c
:
d
,
e
:
f
:
g
,
...,
h
,
:
i
:]
tests/compile/specialfloatvals.pyx
View file @
c8665b07
# mode: compile
DEF
nan
=
float
(
'nan'
)
DEF
inf
=
float
(
'inf'
)
DEF
minf
=
-
float
(
'inf'
)
...
...
tests/compile/specmethargdefault.pyx
View file @
c8665b07
# mode: compile
cdef
class
Grail
:
def
__cinit__
(
self
,
spam
=
None
):
...
...
tests/compile/specmethdocstring.pyx
View file @
c8665b07
# mode: compile
cdef
class
C
:
def
__cinit__
(
self
):
"This is an unusable docstring."
...
...
tests/compile/specmethextarg.pyx
View file @
c8665b07
# mode: compile
cdef
class
Spam
:
cdef
int
eggs
...
...
tests/compile/traceback.pyx
View file @
c8665b07
# mode: compile
def
spam
():
raise
Exception
...
...
tests/compile/tryexcept.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
,
c
,
x
):
cdef
int
i
a
=
b
+
c
...
...
tests/compile/tryfinally.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
,
c
,
x
):
cdef
int
i
a
=
b
+
c
...
...
tests/compile/typecast.pyx
View file @
c8665b07
# mode: compile
cdef
void
f
(
obj
):
cdef
size_t
i
=
0
cdef
char
*
p
...
...
tests/compile/types_and_names.pyx
View file @
c8665b07
# mode: compile
print
sizeof
(
point
*
)
cdef
foo
(
int
i0
,
int
i
,
list
L0
,
list
L
,
point
p0
,
point
p
,
point
*
ps
):
...
...
tests/compile/watts2.pyx
View file @
c8665b07
# mode: compile
cdef
int
x
x
=
0xFFFFFFFF
tests/compile/weakref_T276.pyx
View file @
c8665b07
# ticket: 276
# mode: compile
__doc__
=
u"""
"""
...
...
tests/compile/while.pyx
View file @
c8665b07
# mode: compile
def
f
(
a
,
b
):
cdef
int
i
=
5
...
...
tests/compile/withgil.pyx
View file @
c8665b07
# mode: compile
cdef
void
f
()
with
gil
:
x
=
42
...
...
tests/errors/break_outside_loop.pyx
View file @
c8665b07
# mode: error
break
...
...
tests/errors/buffertypedef_T117.pyx
View file @
c8665b07
# ticket: 117
# mode: error
ctypedef
object
[
float
]
mybuffer
_ERRORS
=
u"""
...
...
tests/errors/builtin_type_inheritance.pyx
View file @
c8665b07
# mode: error
# current restriction: cannot inherit from PyVarObject (see ticket #152)
...
...
tests/errors/callargs.pyx
View file @
c8665b07
# mode: error
def
f
(
*
args
,
**
kwargs
):
pass
...
...
tests/errors/callingnonexisting_T307.pyx
View file @
c8665b07
# ticket: 307
# mode: error
nonexisting
(
3
,
with_kw_arg
=
4
)
_ERRORS
=
u"""
...
...
tests/errors/cdef_members_T517.pyx
View file @
c8665b07
# ticket: 517
# mode: error
ctypedef
void
*
VoidP
cdef
class
Spam
:
...
...
tests/errors/cdef_syntax.pyx
View file @
c8665b07
# mode: error
cdef
pass
cdef
void
...
...
tests/errors/cdefkwargs.pyx
View file @
c8665b07
# mode: error
__doc__
=
u"""
>>> call2()
>>> call3()
...
...
tests/errors/cdefoptargs.pyx
View file @
c8665b07
# mode: error
def
call5
():
b
(
1
,
2
,
3
,
4
,
5
)
...
...
tests/errors/cdefspecial.pyx
View file @
c8665b07
# mode: error
cdef
class
Test
:
cdef
__cinit__
(
self
):
...
...
tests/errors/cmethbasematch.pyx
View file @
c8665b07
# mode: error
cdef
class
C
:
cdef
void
f
(
self
):
pass
...
...
tests/errors/compile_time_unraisable_T370.pyx
View file @
c8665b07
# ticket: 370
# mode: error
cdef
int
raiseit
():
raise
IndexError
...
...
tests/errors/continue_outside_loop.pyx
View file @
c8665b07
# mode: error
continue
...
...
tests/errors/cpdef_syntax.pyx
View file @
c8665b07
# mode: error
cpdef
nogil
:
pass
cpdef
nogil
class
test
:
pass
...
...
tests/errors/cpp_no_constructor.pyx
View file @
c8665b07
# tag: cpp
# mode: error
cdef
extern
from
*
:
cdef
cppclass
Foo
:
Foo
()
...
...
tests/errors/cython3_bytes.pyx
View file @
c8665b07
# mode: error
# -*- coding: utf-8 -*-
# cython: language_level=3
...
...
tests/errors/declareafteruse_T158.pyx
View file @
c8665b07
# ticket: 158
# mode: error
def
mult_decl_test
():
print
"%s"
%
vv
print
"%s"
%
s
...
...
tests/errors/def_nogil.pyx
View file @
c8665b07
# mode: error
def
test
()
nogil
:
pass
...
...
tests/errors/e2_packedstruct_T290.pyx
View file @
c8665b07
# ticket: 290
# mode: error
cdef
packed
foo
:
pass
...
...
tests/errors/e_addop.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
int
int1
,
int3
cdef
int
*
ptr1
,
*
ptr2
,
*
ptr3
...
...
tests/errors/e_argdefault.pyx
View file @
c8665b07
# mode: error
cdef
spam
(
int
i
,
char
*
s
=
"blarg"
,
float
f
):
# can't have default value
pass
...
...
tests/errors/e_ass.pyx
View file @
c8665b07
# mode: error
cdef
void
foo
(
obj
):
cdef
int
i1
cdef
char
*
p1
...
...
tests/errors/e_assnone.pyx
View file @
c8665b07
# mode: error
cdef
void
spam
():
None
=
42
_ERRORS
=
u"""
...
...
tests/errors/e_autotestdict.pyx
View file @
c8665b07
# mode: error
cimport
cython
@
cython
.
autotestdict
(
False
)
...
...
tests/errors/e_badexcvaltype.pyx
View file @
c8665b07
# mode: error
cdef
char
*
spam
()
except
-
1
:
pass
...
...
tests/errors/e_badfuncargtype.pyx
View file @
c8665b07
# mode: error
cdef
struct
Spam
cdef
extern
int
spam
(
void
)
# function argument cannot be void
...
...
tests/errors/e_badpyparam.pyx
View file @
c8665b07
# mode: error
cdef
struct
Foo
def
f
(
Foo
*
p
):
...
...
tests/errors/e_badtypeuse.pyx
View file @
c8665b07
# mode: error
cdef
struct
Grail
cdef
extern
object
xobj
# Python object cannot be extern
...
...
tests/errors/e_bitop.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
int
int1
,
int2
cdef
char
*
ptr
...
...
tests/errors/e_boolcoerce.pyx
View file @
c8665b07
# mode: error
ctypedef
struct
struct_type_not_boolean
:
int
i
float
f
...
...
tests/errors/e_bufaccess.pyx
View file @
c8665b07
# mode: error
cdef
object
[
int
]
buf
cdef
class
A
:
cdef
object
[
int
]
buf
...
...
tests/errors/e_bufaccess2.pyx
View file @
c8665b07
# mode: error
cimport
e_bufaccess_pxd
# was needed to provoke a bug involving ErrorType
import
cython
...
...
tests/errors/e_callnonfunction.pyx
View file @
c8665b07
# mode: error
cdef
int
i
i
()
...
...
tests/errors/e_callspec.pyx
View file @
c8665b07
# mode: error
cimport
cython
@
cython
.
callspec
(
""
)
...
...
tests/errors/e_cdef_keywords_T241.pyx
View file @
c8665b07
# ticket: 241
# mode: error
cdef
some_function
(
x
,
y
):
pass
...
...
tests/errors/e_cdef_missing_declarator.pyx
View file @
c8665b07
# mode: error
cdef
int
cdef
extern
from
*
:
...
...
tests/errors/e_cdefassign.pyx
View file @
c8665b07
# mode: error
cdef
class
A
:
cdef
int
value
=
3
...
...
tests/errors/e_cdefemptysue.pyx
View file @
c8665b07
# mode: error
cdef
struct
spam
:
pass
...
...
tests/errors/e_cenum.pyx
View file @
c8665b07
# mode: error
cdef
enum
Spam
:
a
,
b
,
c
...
...
tests/errors/e_cmethbasematch.pyx
View file @
c8665b07
# mode: error
cdef
class
C
:
cdef
void
f
(
self
):
pass
...
...
tests/errors/e_cmp.pyx
View file @
c8665b07
# mode: error
cdef
void
foo
():
cdef
int
bool
,
int1
cdef
char
*
ptr2
...
...
tests/errors/e_cstruct.pyx
View file @
c8665b07
# mode: error
cdef
struct
Spam
:
int
i
char
c
...
...
tests/errors/e_ctypedefforward.pyx
View file @
c8665b07
# mode: error
ctypedef
struct
Spam
cdef
extern
from
*
:
...
...
tests/errors/e_ctypedefornot.pyx
View file @
c8665b07
# mode: error
cdef
struct
Foo
ctypedef
struct
Foo
:
...
...
tests/errors/e_declarations.pyx
View file @
c8665b07
# mode: error
cdef
extern
void
fa
[
5
]()
cdef
extern
int
af
()[
5
]
cdef
extern
int
ff
()()
...
...
tests/errors/e_decorators.pyx
View file @
c8665b07
# mode: error
_ERRORS
=
u"""
4:4 Expected a newline after decorator
...
...
tests/errors/e_del.pyx
View file @
c8665b07
# mode: error
cdef
struct
S
:
int
m
...
...
tests/errors/e_directives.pyx
View file @
c8665b07
# mode: error
# cython: nonexistant = True
# cython: boundscheck = true
...
...
tests/errors/e_exceptclause.pyx
View file @
c8665b07
# mode: error
try
:
raise
KeyError
...
...
tests/errors/e_excvalfunctype.pyx
View file @
c8665b07
# mode: error
ctypedef
int
(
*
spamfunc
)(
int
,
char
*
)
except
42
ctypedef
int
(
*
grailfunc
)(
int
,
char
*
)
...
...
tests/errors/e_extweakref.pyx
View file @
c8665b07
# mode: error
cdef
class
C
:
cdef
object
__weakref__
...
...
tests/errors/e_func_in_pxd.pyx
View file @
c8665b07
# mode: error
cimport
e_func_in_pxd_support
_ERRORS
=
u"""
...
...
tests/errors/e_index.pyx
View file @
c8665b07
# mode: error
def
f
(
obj1
,
obj2
):
cdef
int
int1
,
int2
,
int3
cdef
float
flt1
,
*
ptr1
...
...
tests/errors/e_int_literals_py2.py
View file @
c8665b07
# mode: error
# cython: language_level=2
def
int_literals
():
...
...
tests/errors/e_int_literals_py3.py
View file @
c8665b07
# mode: error
# cython: language_level=3
def
int_literals
():
...
...
tests/errors/e_multass.pyx
View file @
c8665b07
# mode: error
def
f
(
obj1a
,
obj1b
):
cdef
int
int1
,
int2
,
int3
cdef
int
*
ptr2
...
...
tests/errors/e_nargs.pyx
View file @
c8665b07
# mode: error
cdef
extern
grail
(
char
*
s
,
int
i
)
cdef
extern
spam
(
char
*
s
,
int
i
,...)
...
...
tests/errors/e_nogilcmeth.pyx
View file @
c8665b07
# mode: error
cdef
class
C
:
cdef
void
f
(
self
)
nogil
:
pass
...
...
tests/errors/e_nogilfunctype.pyx
View file @
c8665b07
# mode: error
cdef
extern
from
*
:
cdef
void
f
()
cdef
void
(
*
fp
)()
nogil
...
...
tests/errors/e_nosignword.pyx
View file @
c8665b07
# mode: error
cdef
signed
float
e
cdef
unsigned
float
f
cdef
signed
double
g
...
...
tests/errors/e_notnone.pyx
View file @
c8665b07
# mode: error
cdef
extern
class
Grail
.
Shrubbery
cdef
void
spam
(
Shrubbery
sh
not
None
):
...
...
tests/errors/e_notnone2.pyx
View file @
c8665b07
# mode: error
def
eggs
(
int
x
not
None
,
char
*
y
not
None
):
pass
_ERRORS
=
u"""
...
...
tests/errors/e_numop.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
int
int1
,
int2
cdef
int
*
ptr
...
...
tests/errors/e_packedstruct_T290.pyx
View file @
c8665b07
# ticket: 290
# mode: error
cdef
extern
:
cdef
packed
struct
MyStruct
:
char
a
...
...
tests/errors/e_powop.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
char
*
str1
cdef
float
flt1
,
flt2
,
flt3
...
...
tests/errors/e_pxdimpl.pyx
View file @
c8665b07
# mode: error
cimport
e_pxdimpl_imported
_ERRORS
=
u"""
...
...
tests/errors/e_pyobinstruct.pyx
View file @
c8665b07
# mode: error
cdef
object
x
cdef
struct
spam
:
...
...
tests/errors/e_return.pyx
View file @
c8665b07
# mode: error
cdef
void
g
():
cdef
int
i
return
i
# error
...
...
tests/errors/e_sizeofincomplete.pyx
View file @
c8665b07
# mode: error
cdef
struct
unbekannt
cdef
int
n
n
=
sizeof
(
unbekannt
)
...
...
tests/errors/e_slice.pyx
View file @
c8665b07
# mode: error
def
f
(
obj2
):
cdef
int
*
ptr1
obj1
=
obj2
[
ptr1
::]
# error
...
...
tests/errors/e_strcoerce.pyx
View file @
c8665b07
# mode: error
cdef
int
c1
=
"t"
# works
cdef
int
c2
=
"te"
# fails
cdef
int
cx
=
"test"
# fails
...
...
tests/errors/e_subop.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
int
int2
cdef
char
*
ptr1
,
*
ptr2
,
*
ptr3
...
...
tests/errors/e_switch.pyx
View file @
c8665b07
# mode: error
cdef
int
x
=
3
if
x
==
NONEXISTING
:
...
...
tests/errors/e_tempcast.pyx
View file @
c8665b07
# mode: error
cdef
object
blarg
def
foo
(
obj
):
...
...
tests/errors/e_undefexttype.pyx
View file @
c8665b07
# mode: error
cdef
class
Spam
cdef
extern
class
external
.
Eggs
_ERRORS
=
u"""
...
...
tests/errors/e_unop.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
int
int1
cdef
char
*
str2
...
...
tests/errors/e_while.pyx
View file @
c8665b07
# mode: error
def
f
(
a
,
b
):
cdef
int
i
break
# error
...
...
tests/errors/empty.pyx
View file @
c8665b07
# mode: error
tests/errors/encoding.pyx
View file @
c8665b07
# mode: error
# coding=ASCII
"""
...
...
tests/errors/extclassattrsetting.pyx
View file @
c8665b07
# mode: error
__doc__
=
u"""
>>> e = ExtClass()
>>> e.get()
...
...
tests/errors/extended_unpacking.pyx
View file @
c8665b07
# mode: error
# invalid syntax (not handled by the parser)
...
...
tests/errors/extended_unpacking_parser.pyx
View file @
c8665b07
# mode: error
# wrong size RHS (as handled by the parser)
...
...
tests/errors/extended_unpacking_parser2.pyx
View file @
c8665b07
# mode: error
# invalid syntax (as handled by the parser)
...
...
tests/errors/futurebraces.pyx
View file @
c8665b07
# mode: error
from
__future__
import
braces
_ERRORS
=
u"""
...
...
tests/errors/invalid_cast.pyx
View file @
c8665b07
# mode: error
def
f
():
a
=
<
foao
>
True
...
...
tests/errors/invalid_hex_escape0.pyx
View file @
c8665b07
# mode: error
'
\
x
'
...
...
tests/errors/invalid_hex_escape1.pyx
View file @
c8665b07
# mode: error
'
\
x
1
'
...
...
tests/errors/invalid_uescape.pyx
View file @
c8665b07
# mode: error
u'
\
uXYZ
'
...
...
tests/errors/invalid_uescape0.pyx
View file @
c8665b07
# mode: error
u'
\
u
'
...
...
tests/errors/invalid_uescape2.pyx
View file @
c8665b07
# mode: error
u'
\
u
12
'
...
...
tests/errors/literal_lists.pyx
View file @
c8665b07
# mode: error
def
f
():
cdef
int
*
p
if
false
():
...
...
tests/errors/missing_baseclass_in_predecl_T262.pyx
View file @
c8665b07
# ticket: 262
# mode: error
cdef
class
Album
cdef
class
SessionStruct
:
...
...
tests/errors/missing_self_in_cpdef_method_T156.pyx
View file @
c8665b07
# ticket: 156
# mode: error
cdef
class
B
:
cpdef
b
():
...
...
tests/errors/missing_self_in_cpdef_method_T165.pyx
View file @
c8665b07
# ticket: 165
# mode: error
cdef
class
A
:
cpdef
a
(
int
not_self
):
...
...
tests/errors/nogil.pyx
View file @
c8665b07
# mode: error
cdef
object
f
(
object
x
)
nogil
:
pass
...
...
tests/errors/nogilcmeth.pyx
View file @
c8665b07
# mode: error
cdef
class
C
:
cdef
void
f
(
self
):
pass
...
...
tests/errors/nogilfunctype.pyx
View file @
c8665b07
# mode: error
cdef
extern
from
*
:
cdef
void
f
()
cdef
void
(
*
fp
)()
nogil
...
...
tests/errors/nonconst_def.pyx
View file @
c8665b07
# mode: error
import
os
DEF
ospath
=
os
.
path
...
...
tests/errors/notcimportedT418.pyx
View file @
c8665b07
# ticket: 418
# mode: error
import
somemod.child
cdef
somemod
.
child
.
something
x
...
...
tests/errors/pxd_cdef_class_declaration_T286.pyx
View file @
c8665b07
# ticket: 286
# mode: error
cdef
class
A
:
pass
...
...
tests/errors/py_ucs4_type_errors.pyx
View file @
c8665b07
# mode: error
# -*- coding: iso-8859-1 -*-
cdef
Py_UCS4
char_ASCII
=
u'A'
...
...
tests/errors/py_unicode_type_errors.pyx
View file @
c8665b07
# mode: error
# -*- coding: iso-8859-1 -*-
cdef
Py_UNICODE
char_ASCII
=
u'A'
...
...
tests/errors/pyobjcastdisallow_T313.pyx
View file @
c8665b07
# ticket: 313
# mode: error
a
=
3
...
...
tests/errors/return_outside_function_T135.pyx
View file @
c8665b07
# ticket: 135
# mode: error
def
_runtime_True
():
return
True
...
...
tests/errors/se_badindent.pyx
View file @
c8665b07
# mode: error
def
f
():
a
=
b
# space space
c
=
d
# space tab
...
...
tests/errors/se_badindent2.pyx
View file @
c8665b07
# mode: error
def
f
():
a
=
b
c
=
d
...
...
tests/errors/se_mixtabspace.pyx
View file @
c8665b07
# mode: error
def
f
():
a
=
b
# space space
c
=
d
# tab
...
...
tests/errors/se_multass.pyx
View file @
c8665b07
# mode: error
def
f
(
obj1a
,
obj2a
,
obj3a
,
obj1b
,
obj2b
,
obj3b
,
obj4b
):
obj1a
,
(
obj2a
,
obj3a
)
=
obj1b
,
(
obj2b
,
obj3b
,
obj4b
)
...
...
tests/errors/string_assignments.pyx
View file @
c8665b07
# mode: error
# coding: ASCII
# ok:
...
...
tests/errors/subtyping_final_class.pyx
View file @
c8665b07
# mode: error
cimport
cython
...
...
tests/errors/tree_assert.pyx
View file @
c8665b07
# mode: error
cimport
cython
...
...
tests/errors/typoT304.pyx
View file @
c8665b07
# ticket: 304
# mode: error
def
f
():
print
assert
sizeof
(
int
)
==
sizof
(
short
)
==
sizeof
(
long
)
...
...
tests/errors/undefinedname.pyx
View file @
c8665b07
# mode: error
i
=
_this_global_name_does_not_exist_
def
test
(
i
):
...
...
tests/errors/void_as_arg.pyx
View file @
c8665b07
# mode: error
cdef
extern
from
*
:
void
foo
(
void
)
...
...
tests/run/always_allow_keywords_T295.pyx
View file @
c8665b07
# ticket: 295
cimport
cython
...
...
tests/run/args_unpacking_in_closure_T658.pyx
View file @
c8665b07
# ticket: 658
def
outer
(
int
x
,
*
args
,
**
kwargs
):
"""
...
...
tests/run/autotestdict_skip.pyx
View file @
c8665b07
#cython: autotestdict=True
"""
Tests that autotestdict doesn't come into effect when
a __test__ is defined manually.
...
...
tests/run/bad_c_struct_T252.pyx
View file @
c8665b07
# ticket: 252
cdef
cf
(
default
=
None
):
return
default
...
...
tests/run/bint_binop_T145.pyx
View file @
c8665b07
# ticket: 145
cimport
cython
...
...
tests/run/bint_property_T354.pyx
View file @
c8665b07
# ticket: 354
cdef
class
Test
:
"""
...
...
tests/run/bound_builtin_methods_T589.pyx
View file @
c8665b07
# ticket: 589
cimport
cython
...
...
tests/run/builtin_py3.pyx
View file @
c8665b07
# tag: py3
__doc__
=
u"""
>>> test_xrange()
0
...
...
tests/run/builtin_type_inheritance_T608.pyx
View file @
c8665b07
# ticket: 608
cdef
class
MyInt
(
int
):
"""
...
...
tests/run/builtin_types_none_T166.pyx
View file @
c8665b07
# ticket: 166
__doc__
=
u"""
>>> l = None
>>> l.append(2)
...
...
tests/run/c_int_types_T255.pyx
View file @
c8665b07
# ticket: 255
__doc__
=
u""
# -------------------------------------------------------------------
...
...
tests/run/c_type_methods_T236.pyx
View file @
c8665b07
# ticket: 236
__doc__
=
''
...
...
tests/run/cascaded_list_unpacking_T467.pyx
View file @
c8665b07
# ticket: 467
def
simple_parallel_assignment_from_call
():
"""
...
...
tests/run/cascaded_typed_assignments_T466.pyx
View file @
c8665b07
# ticket: 466
# extension to T409
def
simple_parallel_typed
():
...
...
tests/run/cdef_bool_T227.pyx
View file @
c8665b07
# ticket: 227
from
cpython.bool
cimport
bool
def
foo
(
bool
a
):
...
...
tests/run/cdef_decorator_directives_T183.pyx
View file @
c8665b07
# ticket: 183
cimport
cython
@
cython
.
cdivision
(
True
)
...
...
tests/run/cdef_locals_decorator_T477.pyx
View file @
c8665b07
# ticket: 477
import
cython
@
cython
.
locals
(
x
=
double
)
cdef
func
(
x
):
...
...
tests/run/cdef_members_T517.pyx
View file @
c8665b07
# ticket: 517
#cython: embedsignature=True
__doc__
=
u"""
>>> a = A()
>>> a.h = 7
...
...
tests/run/cdef_methods_T462.pyx
View file @
c8665b07
# ticket: 462
cimport
cython
...
...
tests/run/cdef_setitem_T284.pyx
View file @
c8665b07
# ticket: 284
def
no_cdef
():
"""
>>> no_cdef()
...
...
tests/run/cfunc_call_tuple_args_T408.pyx
View file @
c8665b07
# ticket: 408
__doc__
=
"""
>>> call_with_tuple(1, 1.2, 'test', [1,2,3])
(1, 1.2, 'test', [1, 2, 3])
...
...
tests/run/char_constants_T99.pyx
View file @
c8665b07
# ticket: 99
cdef
char
c
=
'c'
cdef
char
*
s
=
'abcdef'
...
...
tests/run/charcomparisonT412.pyx
View file @
c8665b07
# ticket: 412
def
f
():
"""
>>> f()
...
...
tests/run/charptr_comparison_T582.pyx
View file @
c8665b07
# ticket: 582
cimport
cython
...
...
tests/run/cimport_cython_T505.pyx
View file @
c8665b07
# ticket: 505
cimport
cython
cdef
extern
from
"Python.h"
:
...
...
tests/run/class_attribute_init_values_T18.pyx
View file @
c8665b07
# ticket: 18
__doc__
=
u"""
>>> f = PyFoo()
>>> print(f.bar)
...
...
tests/run/class_func_in_control_structures_T87.pyx
View file @
c8665b07
# ticket: 87
__doc__
=
u"""
>>> d = Defined()
...
...
tests/run/classdecorators_T336.pyx
View file @
c8665b07
# ticket: 336
__doc__
=
u"""
>>> print('
\
\
n'.join(calls))
Py-Honk PyTestClass
...
...
tests/run/closure_class_T596.pyx
View file @
c8665b07
# ticket: 596
def
simple
(
a
,
b
):
"""
>>> kls = simple(1, 2)
...
...
tests/run/closure_decorators_T478.pyx
View file @
c8665b07
# ticket: 478
__doc__
=
"""
>>> Num(13).is_prime()
args (Num(13),) kwds {}
...
...
tests/run/closure_inside_cdef_T554.pyx
View file @
c8665b07
# ticket: 554
def
call_f
(
x
):
"""
>>> call_f(2)
...
...
tests/run/closure_name_mangling_T537.pyx
View file @
c8665b07
# ticket: 537
__doc__
=
u"""
>>> f1 = nested1()
...
...
tests/run/closures_T82.pyx
View file @
c8665b07
# ticket: 82
cimport
cython
...
...
tests/run/complex_cast_T445.pyx
View file @
c8665b07
# ticket: 445
def
complex_double_cast
(
double
x
,
double
complex
z
):
"""
>>> complex_double_cast(1, 4-3j)
...
...
tests/run/complex_int_T446.pyx
View file @
c8665b07
# ticket: 446
import
cython
cdef
extern
from
"complex_int_T446_fix.h"
:
...
...
tests/run/complex_numbers_T305.pyx
View file @
c8665b07
# ticket: 305
cimport
cython
def
test_object_conversion
(
o
):
...
...
tests/run/complex_numbers_c89_T398.pyx
View file @
c8665b07
# ticket: 398
cdef
extern
from
"complex_numbers_c89_T398.h"
:
pass
include
"complex_numbers_T305.pyx"
tests/run/complex_numbers_c99_T398.pyx
View file @
c8665b07
# ticket: 398
cdef
extern
from
"complex_numbers_c99_T398.h"
:
pass
include
"complex_numbers_T305.pyx"
tests/run/complex_numbers_cxx_T398.pyx
View file @
c8665b07
# ticket: 398
cdef
extern
from
"complex_numbers_cxx_T398.h"
:
pass
include
"complex_numbers_T305.pyx"
tests/run/contains_T455.pyx
View file @
c8665b07
# ticket: 455
def
in_sequence
(
x
,
seq
):
"""
>>> in_sequence(1, [])
...
...
tests/run/cpdef_temps_T411.pyx
View file @
c8665b07
# ticket: 411
cdef
class
A
:
"""
>>> A().is_True()
...
...
tests/run/cpp_bool.pyx
View file @
c8665b07
# tag: cpp
from
libcpp
cimport
bool
def
test_bool
(
bool
a
):
...
...
tests/run/cpp_classes.pyx
View file @
c8665b07
# tag: cpp
__doc__
=
u"""
>>> test_new_del()
(2, 2)
...
...
tests/run/cpp_exceptions.pyx
View file @
c8665b07
# tag: cpp
cdef
int
raise_py_error
()
except
*
:
raise
TypeError
(
"custom"
)
...
...
tests/run/cpp_exceptions_nogil.pyx
View file @
c8665b07
# tag: cpp
cdef
int
raise_TypeError
()
except
*
:
raise
TypeError
(
"custom"
)
...
...
tests/run/cpp_namespaces.pyx
View file @
c8665b07
# tag: cpp
cdef
extern
from
"cpp_namespaces_helper.h"
namespace
"A"
:
ctypedef
int
A_t
A_t
A_func
(
A_t
first
,
A_t
)
...
...
tests/run/cpp_nested_templates.pyx
View file @
c8665b07
# tag: cpp
from
cython.operator
cimport
dereference
as
deref
cdef
extern
from
"cpp_templates_helper.h"
:
...
...
tests/run/cpp_nonstdint.pyx
View file @
c8665b07
# tag: cpp
cdef
extern
from
"cpp_nonstdint.h"
:
ctypedef
int
Int24
ctypedef
int
Int56
...
...
tests/run/cpp_operators.pyx
View file @
c8665b07
# tag: cpp
cimport
cython.operator
from
cython.operator
cimport
dereference
as
deref
...
...
tests/run/cpp_stl.pyx
View file @
c8665b07
# tag: cpp
cdef
extern
from
"vector"
namespace
"std"
:
cdef
cppclass
vector
[
T
]:
...
...
tests/run/cpp_stl_vector.pyx
View file @
c8665b07
# tag: cpp
from
cython.operator
cimport
dereference
as
d
from
cython.operator
cimport
preincrement
as
incr
...
...
tests/run/cpp_templates.pyx
View file @
c8665b07
# tag: cpp
from
cython.operator
import
dereference
as
deref
cdef
extern
from
"cpp_templates_helper.h"
:
...
...
tests/run/crashT245.pyx
View file @
c8665b07
# ticket: 245
cimport
crashT245_pxd
def
f
():
...
...
tests/run/ctypedef_int_types_T333.pyx
View file @
c8665b07
# ticket: 333
#cython: autotestdict=True
# -------------------------------------------------------------------
...
...
tests/run/decorators_T593.pyx
View file @
c8665b07
# ticket: 593
"""
>>> am_i_buggy
False
...
...
tests/run/division_T384.pyx
View file @
c8665b07
# ticket: 384
"""
>>> test(3)
(3+1j)
...
...
tests/run/ellipsis_T488.pyx
View file @
c8665b07
# ticket: 488
"""
>>> test()
"""
...
...
tests/run/empty_for_loop_T208.pyx
View file @
c8665b07
# ticket: 208
def
go_py_empty
():
"""
>>> go_py_empty()
...
...
tests/run/enumerate_T316.pyx
View file @
c8665b07
# ticket: 316
cimport
cython
@
cython
.
test_fail_if_path_exists
(
"//SimpleCallNode//NameNode[@name = 'enumerate']"
)
...
...
tests/run/ext_instance_type_T232.pyx
View file @
c8665b07
# ticket: 232
cdef
class
MyExt
:
cdef
object
attr
...
...
tests/run/extended_unpacking_T235.pyx
View file @
c8665b07
# ticket: 235
__doc__
=
u"""
>>> class FakeSeq(object):
... def __init__(self, length):
...
...
tests/run/extended_unpacking_T409.pyx
View file @
c8665b07
# ticket: 409
def
simple
():
"""
>>> simple()
...
...
tests/run/extern_builtins_T258.pyx
View file @
c8665b07
# ticket: 258
cdef
extern
from
"Python.h"
:
ctypedef
class
__builtin__
.
list
[
object
PyListObject
]:
...
...
tests/run/float_floor_division_T260.pyx
View file @
c8665b07
# ticket: 260
def
floor_div_float
(
double
a
,
double
b
):
"""
>>> floor_div_float(2, 1.5)
...
...
tests/run/float_len_T480.pyx
View file @
c8665b07
# ticket: 480
def
f
(
x
):
return
x
...
...
tests/run/for_from_float_T254.pyx
View file @
c8665b07
# ticket: 254
def
double_target
(
a
,
b
):
"""
>>> double_target(0, 4)
...
...
tests/run/for_from_pyvar_loop_T601.pyx
View file @
c8665b07
# ticket: 601
cdef
unsigned
long
size2
():
return
3
...
...
tests/run/for_in_break_continue_T533.pyx
View file @
c8665b07
# ticket: 533
def
for_in
():
"""
...
...
tests/run/for_in_range_T372.pyx
View file @
c8665b07
# ticket: 372
cimport
cython
@
cython
.
test_assert_path_exists
(
"//ForFromStatNode"
)
...
...
tests/run/funcexc_iter_T228.pyx
View file @
c8665b07
# ticket: 228
__doc__
=
u"""
>>> def py_iterator():
... if True: return
...
...
tests/run/function_as_method_T494.pyx
View file @
c8665b07
# ticket: 494
__doc__
=
"""
>>> A.foo = foo
>>> print A().foo()
...
...
tests/run/function_binding_T494.pyx
View file @
c8665b07
# ticket: 494
cimport
cython
class
SomeNumber
(
object
):
...
...
tests/run/genexpr_T491.pyx
View file @
c8665b07
# ticket: 491
def
test_genexpr
():
"""
...
...
tests/run/genexpr_iterable_lookup_T600.pyx
View file @
c8665b07
# ticket: 600
cimport
cython
...
...
tests/run/hash_T326.pyx
View file @
c8665b07
# ticket: 326
__doc__
=
u"""
>>> hash(A(5))
...
...
tests/run/ifelseexpr_T267.pyx
View file @
c8665b07
# ticket: 267
"""
>>> constants(4)
1
...
...
tests/run/in_list_with_side_effects_T544.pyx
View file @
c8665b07
# ticket: 544
def
count
(
i
=
[
0
]):
i
[
0
]
+=
1
...
...
tests/run/int_float_builtins_as_casts_T400.pyx
View file @
c8665b07
# ticket: 400
cimport
cython
...
...
tests/run/intern_T431.pyx
View file @
c8665b07
# ticket: 431
__doc__
=
u"""
>>> s == s_interned
True
...
...
tests/run/ipow_crash_T562.pyx
View file @
c8665b07
# ticket: 562
class
IPOW
:
"""
>>> IPOW().__ipow__('a')
...
...
tests/run/lambda_T195.pyx
View file @
c8665b07
# ticket: 195
__doc__
=
u"""
#>>> py_identity = lambda x:x
#>>> py_identity(1) == cy_identity(1)
...
...
tests/run/lambda_class_T605.pyx
View file @
c8665b07
# ticket: 605
cdef
int
cdef
_CONST
=
123
CONST
=
456
...
...
tests/run/lambda_module_T603.pyx
View file @
c8665b07
# ticket: 603
# Module scope lambda functions
__doc__
=
"""
>>> pow2(16)
256
...
...
tests/run/large_consts_T237.pyx
View file @
c8665b07
# ticket: 237
#def add_large_c():
# cdef unsigned long long val = 2**30 + 2**30
# return val
...
...
tests/run/list_comp_in_closure_T598.pyx
View file @
c8665b07
# ticket: 598
# cython: language_level=3
def
list_comp_in_closure
():
...
...
tests/run/locals_expressions_T430.pyx
View file @
c8665b07
# ticket: 430
__doc__
=
u"""
>>> sorted( get_locals(1,2,3, k=5) .items())
[('args', (2, 3)), ('kwds', {'k': 5}), ('x', 1), ('y', 'hi'), ('z', 5)]
...
...
tests/run/locals_rebind_T429.pyx
View file @
c8665b07
# ticket: 429
__doc__
=
u"""
>>> sorted( get_locals(1,2,3, k=5) .items())
[('args', (2, 3)), ('kwds', {'k': 5}), ('x', 1), ('y', 'hi'), ('z', 5)]
...
...
tests/run/method_module_name_T422.pyx
View file @
c8665b07
# ticket: 422
"""
>>> Foo.incr.__module__ is not None
True
...
...
tests/run/methodmangling_T5.pyx
View file @
c8665b07
# ticket: 5
# this is ticket #5
__doc__
=
u"""
...
...
tests/run/non_dict_kwargs_T470.pyx
View file @
c8665b07
# ticket: 470
__doc__
=
u"""
>>> func(**{'a' : 7})
True
...
...
tests/run/numpy_ValueError_T172.pyx
View file @
c8665b07
# ticket: 172
# tag: numpy
__doc__
=
u"""
>>> 1
1
...
...
tests/run/numpy_bufacc_T155.pyx
View file @
c8665b07
# ticket: 155
# tag: numpy
"""
>>> myfunc()
0.5
...
...
tests/run/numpy_cimport.pyx
View file @
c8665b07
# tag: numpy
"""
>>> import sys
>>> 'numpy' in sys.modules
...
...
tests/run/numpy_test.pyx
View file @
c8665b07
# tag: numpy
# cannot be named "numpy" in order to not clash with the numpy module!
cimport
numpy
as
np
...
...
tests/run/packedstruct_T290.pyx
View file @
c8665b07
# ticket: 290
"""
>>> f()
(9, 9)
...
...
tests/run/parallel_swap_assign_T425.pyx
View file @
c8665b07
# ticket: 425
cimport
cython
@
cython
.
test_assert_path_exists
(
...
...
tests/run/pyfunction_redefine_T489.pyx
View file @
c8665b07
# ticket: 489
"""
>>> xxx
[0, 1, 2, 3]
...
...
tests/run/pyobjcast_T313.pyx
View file @
c8665b07
# ticket: 313
# Ensure casting still works to void*
"""
...
...
tests/run/raise_memory_error_T650.pyx
View file @
c8665b07
# ticket: 650
cimport
cython
...
...
tests/run/range_optimisation_T203.pyx
View file @
c8665b07
# ticket: 203
cdef
int
get_bound
(
int
m
):
print
u"get_bound(%s)"
%
m
return
m
...
...
tests/run/refcount_in_meth.pyx
View file @
c8665b07
#!/usr/bin/env python
__doc__
=
u"""
>>> t = RefCountInMeth()
>>> t.chk_meth()
...
...
tests/run/short_circuit_T404.pyx
View file @
c8665b07
# ticket: 404
cdef
long
foo
(
long
x
):
print
"foo(%s)"
%
x
return
x
...
...
tests/run/special_methods_T561.pyx
View file @
c8665b07
# ticket: 561
# The patch in #561 changes code generation for most special methods
# to remove the Cython-generated wrapper and let PyType_Ready()
# generate its own wrapper. (This wrapper would be used, for instance,
...
...
tests/run/special_methods_T561_py2.pyx
View file @
c8665b07
# ticket: 561
# tag: py2
# This file tests the behavior of special methods under Python 2
# after #561. (Only methods whose behavior differs between Python 2 and 3
# are tested here; see special_methods_T561.pyx for the rest of the tests.)
...
...
tests/run/special_methods_T561_py3.pyx
View file @
c8665b07
# ticket: 561
# tag: py3
# This file tests the behavior of special methods under Python 3
# after #561. (Only methods whose behavior differs between Python 2 and 3
# are tested here; see special_methods_T561.pyx for the rest of the tests.)
...
...
tests/run/ssize_t_T399.pyx
View file @
c8665b07
# ticket: 399
__doc__
=
u"""
>>> test(-2)
-2
...
...
tests/run/starred_target_T664.pyx
View file @
c8665b07
# ticket: 664
def
assign
():
"""
>>> assign()
...
...
tests/run/str_char_coercion_T412.pyx
View file @
c8665b07
# ticket: 412
cdef
int
i
=
'x'
cdef
char
c
=
'x'
cdef
char
*
s
=
'x'
...
...
tests/run/temp_alloc_T409.pyx
View file @
c8665b07
# ticket: 409
# Extracted from sage/plot/plot3d/index_face_set.pyx:502
# Turns out to be a bug in implementation of PEP 3132 (Extended Iterable Unpacking)
...
...
tests/run/temp_sideeffects_T654.pyx
View file @
c8665b07
# ticket: 654
# function call arguments
...
...
tests/run/tp_new_T454.pyx
View file @
c8665b07
# ticket: 454
cimport
cython
...
...
tests/run/tupleunpack_T298.pyx
View file @
c8665b07
# ticket: 298
"""
>>> func()
0 0
...
...
tests/run/type_slots_int_long_T287.pyx
View file @
c8665b07
# ticket: 287
__doc__
=
u"""
>>> print( "%d" % Int() )
2
...
...
tests/run/typeddefaultargT373.pyx
View file @
c8665b07
# ticket: 373
import
math
cdef
class
MyClass
:
...
...
tests/run/typedfieldbug_T303.pyx
View file @
c8665b07
# ticket: 303
__doc__
=
"""
>>> readonly() #doctest: +ELLIPSIS
Traceback (most recent call last):
...
...
tests/run/typetest_T417.pyx
View file @
c8665b07
# ticket: 417
#cython: autotestdict=True
cdef
class
Foo
:
...
...
tests/run/unsigned_char_ptr_bytes_conversion_T359.pyx
View file @
c8665b07
# ticket: 359
__doc__
=
u"""
>>> py_string1.decode('ASCII') == 'test toast taste'
True
...
...
tests/run/unsignedbehaviour_T184.pyx
View file @
c8665b07
# ticket: 184
"""
>>> c_call()
(-10, 10)
...
...
tests/run/with_statement_module_level_T536.pyx
View file @
c8665b07
# ticket: 536
__doc__
=
"""
>>> inner_result
...
...
tests/wrappers/cpp_overload_wrapper.pyx
View file @
c8665b07
# tag: cpp
cimport
cpp_overload_wrapper_lib
as
cppwrap_lib
...
...
tests/wrappers/cpp_references.pyx
View file @
c8665b07
# tag: cpp
cimport
cython
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment