From 1cd3c12f87e2f08b41b61b61146c1e9ae29d8ee0 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 13 Nov 2008 08:00:10 +0100 Subject: [PATCH] test cases for 'import as' --- tests/run/importas.pyx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/run/importas.pyx 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 -- 2.26.2