From 6b91856fc4e8ecdeb164908a5a130a14a8b20c25 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Mon, 24 Nov 2008 13:40:15 +0100 Subject: [PATCH] new test for import-from with/without parentheses --- tests/run/importfrom.pyx | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/run/importfrom.pyx 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 -- 2.26.2