From: Stefan Behnel Date: Mon, 24 Nov 2008 12:40:15 +0000 (+0100) Subject: new test for import-from with/without parentheses X-Git-Tag: 0.11-beta~222 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b91856fc4e8ecdeb164908a5a130a14a8b20c25;p=cython.git new test for import-from with/without parentheses --- diff --git a/tests/run/importfrom.pyx b/tests/run/importfrom.pyx new file mode 100644 index 00000000..e7dbd6d5 --- /dev/null +++ b/tests/run/importfrom.pyx @@ -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