add simple test for cythonize script
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 10 Aug 2013 18:35:07 +0000 (20:35 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 10 Aug 2013 18:35:07 +0000 (20:35 +0200)
tests/build/cythonize_script.srctree [new file with mode: 0644]

diff --git a/tests/build/cythonize_script.srctree b/tests/build/cythonize_script.srctree
new file mode 100644 (file)
index 0000000..b235ae0
--- /dev/null
@@ -0,0 +1,25 @@
+'''
+PYTHON ../../../bin/cythonize -i pkg
+PYTHON -c "import pkg.sub.test; assert pkg.sub.test.TEST == 'pkg.sub.test'; assert '.py' not in pkg.sub.test.__file__"
+'''
+
+######## test.py ########
+
+TEST = 'test'
+
+######## pkg/__init__.py ########
+
+######## pkg/test.py ########
+
+TEST = 'pkg.test'
+
+######## pkg/sub/__init__.py ########
+
+######## pkg/sub/test.py ########
+# cython: language_level=3
+
+TEST = 'pkg.sub.test'
+
+ustring = 'abc'
+
+assert isinstance(ustring, unicode)