[Python-modules-commits] r23746 - in packages/ipython/trunk/debian/tests (tools)

jtaylor-guest at users.alioth.debian.org jtaylor-guest at users.alioth.debian.org
Wed Mar 20 23:46:48 UTC 2013


    Date: Wednesday, March 20, 2013 @ 23:46:47
  Author: jtaylor-guest
Revision: 23746

more tool tests

Modified:
  packages/ipython/trunk/debian/tests/tools

Modified: packages/ipython/trunk/debian/tests/tools
===================================================================
--- packages/ipython/trunk/debian/tests/tools	2013-03-20 23:46:43 UTC (rev 23745)
+++ packages/ipython/trunk/debian/tests/tools	2013-03-20 23:46:47 UTC (rev 23746)
@@ -2,4 +2,27 @@
 set -efu
 
 export HOME=$ADTTMP
-$1 profile create 2>&1
+
+if [ "$1" = "ipython" ]; then
+IPYTHON=ipython
+IRUNNER=irunner
+elif [ "$1" = "ipython3" ]; then
+IPYTHON=ipython3
+IRUNNER=irunner3
+fi
+
+$IPYTHON locate
+$IPYTHON profile create 2>&1
+
+$IPYTHON profile create foo_profile 2>&1
+$IPYTHON profile list | grep foo_profile 2>&1
+
+cat << EOF > test.py
+from lxml import etree;
+tree = etree.fromstring('<a></a>')
+tree.find('/')
+EOF
+
+$IRUNNER test.py
+$IRUNNER --ipython test.py
+




More information about the Python-modules-commits mailing list