From: Stefan Behnel Date: Thu, 13 Nov 2008 07:00:10 +0000 (+0100) Subject: test cases for 'import as' X-Git-Tag: 0.11-beta~260 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1cd3c12f87e2f08b41b61b61146c1e9ae29d8ee0;p=cython.git test cases for 'import as' --- diff --git a/tests/run/importas.pyx b/tests/run/importas.pyx new file mode 100644 index 00000000..11fb87e0 --- /dev/null +++ b/tests/run/importas.pyx @@ -0,0 +1,23 @@ +__doc__ = u""" +>>> import sys as sous +>>> import distutils.core as corey +>>> from copy import copy as copey + +>>> sous is _sous +True +>>> corey is _corey +True +>>> copey is _copey +True + +>>> _sous is not None +True +>>> _corey is not None +True +>>> _copey is not None +True +""" + +import sys as _sous +import distutils.core as _corey +from copy import copy as _copey