new test for import-from with/without parentheses
authorStefan Behnel <scoder@users.berlios.de>
Mon, 24 Nov 2008 12:40:15 +0000 (13:40 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 24 Nov 2008 12:40:15 +0000 (13:40 +0100)
tests/run/importfrom.pyx [new file with mode: 0644]

diff --git a/tests/run/importfrom.pyx b/tests/run/importfrom.pyx
new file mode 100644 (file)
index 0000000..e7dbd6d
--- /dev/null
@@ -0,0 +1,39 @@
+__doc__ = u"""
+>>> from distutils import cmd, core, version
+>>> import1() == (cmd, core, version)
+True
+>>> import2() == (cmd, core, version)
+True
+>>> import3() == (cmd, core, version)
+True
+>>> import4() == (cmd, core, version)
+True
+"""
+
+def import1():
+    from distutils import (
+
+        cmd,
+
+core,                    version)
+    return cmd, core, version
+
+
+def import2():
+    from distutils import (cmd,
+
+core,
+
+
+                           version
+)
+    return cmd, core, version
+
+
+def import3():
+    from distutils import (cmd, core,version)
+    return cmd, core, version
+
+def import4():
+    from distutils import cmd, core, version
+    return cmd, core, version