Skip to content

Instantly share code, notes, and snippets.

@robertwb
Created August 16, 2016 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertwb/21274dec8d876812148537700d22b69a to your computer and use it in GitHub Desktop.
Save robertwb/21274dec8d876812148537700d22b69a to your computer and use it in GitHub Desktop.
Attachment trac_562-ipow-crash.patch for http://trac.cython.org/ticket/562
# HG changeset patch
# User Carl Witty <Carl.Witty@gmail.com>
# Date 1280273746 25200
# Node ID 38cbd4dff1d97531c4e98c335b6d1e54711f160e
# Parent ee7d9e8b339e5056f6d602ac50e3d55b7756628b
trac #562: test case for segmentation fault
diff --git a/tests/run/ipow_crash_T562.pyx b/tests/run/ipow_crash_T562.pyx
new file mode 100644
--- /dev/null
+++ b/tests/run/ipow_crash_T562.pyx
@@ -0,0 +1,6 @@
+cdef class CrashIPOW:
+ """
+ >>> CrashIPOW().__ipow__('a')
+ """
+ def __ipow__(self, other, mod):
+ print "%s, %s" % (other, mod)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment