[Python-modules-commits] [ipython4] 14/14: fix the minimal syntax example
Gordon Ball
chronitis-guest at moszumanska.debian.org
Sat Jun 24 13:39:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
chronitis-guest pushed a commit to branch master
in repository ipython4.
commit 06b414fbe3cd96de4ed10d7dcacdc9d72e105eb4
Author: Gordon Ball <gordon at chronitis.net>
Date: Sat Jun 24 14:52:37 2017 +0200
fix the minimal syntax example
---
debian/tests/control | 8 ++++++++
debian/tests/test.ipy | 10 ++++++++++
2 files changed, 18 insertions(+)
diff --git a/debian/tests/control b/debian/tests/control
index 69b18d7..ed1ba42 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -3,3 +3,11 @@ Depends: python, python-ipython
Test-Command: python3 -c "import IPython; print(IPython)"
Depends: python3, python3-ipython
+
+Test-Command: ipython debian/tests/test.ipy
+Depends: ipython
+Restrictions: allow-stderr
+
+Test-Command: ipython3 debian/tests/test.ipy
+Depends: ipython3
+Restrictions: allow-stderr
diff --git a/debian/tests/test.ipy b/debian/tests/test.ipy
new file mode 100644
index 0000000..8ec686f
--- /dev/null
+++ b/debian/tests/test.ipy
@@ -0,0 +1,10 @@
+print(1+2+3)
+
+%ls
+
+%load_ext autoreload
+
+import time
+%timeit time.sleep(0.1)
+
+!echo hello
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/ipython4.git
More information about the Python-modules-commits
mailing list