~ubuntu-branches/ubuntu/raring/ipython/raring

« back to all changes in this revision

Viewing changes to debian/tests/cython-magic.py

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2013-02-02 11:14:27 UTC
  • mfrom: (1.2.21) (6.2.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130202111427-nxxl7g1ulix8g9lg
Tags: 0.13.2~rc2-1
* New upstream release candidate (LP: #1161818, #1162112)
* pass -a to xvfb-run
* drop DM-Upload-Allowed, not needed anymore
* don't link documentation of ipython-doc so ipython3 does not depend on
  ipython (Closes: #695554)
  Requires ipython-doc.preinst to not lose copyright on upgrade
* add ipython3 and ipython3-qtconsole desktop files (Closes: #693612)
* fix detection of cython modules for multiarch python (Closes: #697704)
* don't install tests for notebook and qtconsole
* bump standard to 3.9.4, no changes required
* add autopkgtests running testsuite and testing tools, cython magics
  and incomplete install message
* fix crash on tracebacks without line numbers (Closes: #701597)
* add tkinter package to debianize-error-messages.patch (Closes: #701707)
* use canonical vcs fields in control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import pexpect
 
2
import sys
 
3
c = pexpect.spawn(sys.argv[1])
 
4
c.expect(".*")
 
5
c.sendline("%load_ext cythonmagic")
 
6
c.sendline("%%cython")
 
7
c.sendline("cimport cython")
 
8
c.sendline("def f():")
 
9
c.sendline("    return 'RESULT STRING'")
 
10
c.sendline("")
 
11
c.expect(".*")
 
12
c.sendline("f()")
 
13
try:
 
14
    c.expect("RESULT STRING")
 
15
except:
 
16
    c.sendeof()
 
17
    c.sendeof()
 
18
    print c.before, c.after
 
19
    raise
 
20
 
 
21
c.sendeof()
 
22
c.sendeof()
 
23
import time
 
24
time.sleep(1)
 
25
if c.isalive():
 
26
    c.kill(0)