summaryrefslogtreecommitdiff
path: root/tests/run/call_trace_gh4609.srctree
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/call_trace_gh4609.srctree')
-rw-r--r--tests/run/call_trace_gh4609.srctree44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/run/call_trace_gh4609.srctree b/tests/run/call_trace_gh4609.srctree
deleted file mode 100644
index 850be4443..000000000
--- a/tests/run/call_trace_gh4609.srctree
+++ /dev/null
@@ -1,44 +0,0 @@
-PYTHON setup.py build_ext -i
-PYTHON run.py
-
-######## setup.py ########
-
-from Cython.Build.Dependencies import cythonize
-from distutils.core import setup
-
-setup(
- ext_modules = cythonize("*.pyx"),
-)
-
-####### call_func.pyx ##########
-
-import mod
-
-def cy_method(x):
- return mod.function(x)
-
-####### mod.py #################
-
-mod_global = "this is a mod global"
-
-def function(a, mod_global=None):
- if mod_global is not None:
- mod_global = a
-
- return
-
-####### run.py #################
-
-from call_func import cy_method
-import mod
-import sys
-
-def trace(frame, event, arg):
- assert(mod.mod_global == "this is a mod global")
-
- return trace
-
-sys.settrace(trace)
-
-cy_method("s")
-assert(mod.mod_global == "this is a mod global")