~a-roehler/python-mode/XEmacs-compat-test

« back to all changes in this revision

Viewing changes to test/py-bug-numbered-tests.el

  • Committer: Andreas Roehler
  • Date: 2012-01-16 13:11:27 UTC
  • Revision ID: andreas.roehler@online.de-20120116131127-ain2yuke3rgzs19o
some progress with TAB completion in Ipython buffers, lp:916869

Thanks Fabián E. Gallina commenting at the issue
https://github.com/fgallina/python.el






Show diffs side-by-side

added added

removed removed

Lines of Context:
2210
2210
  (goto-char 61)
2211
2211
  (assert (eq 65 (py-forward-into-nomenclature)) nil "py-forward-into-nomenclature-lp-916818-test failed"))
2212
2212
 
 
2213
(defun tab-completion-in-Ipython-buffers-lp-916869-test (&optional arg load-branch-function)
 
2214
  (interactive "p")
 
2215
  (let ((teststring "#! /usr/bin/env python
 
2216
# -*- coding: utf-8 -*-
 
2217
 
 
2218
"))
 
2219
  (when load-branch-function (funcall load-branch-function))
 
2220
  (py-bug-tests-intern 'tab-completion-in-Ipython-buffers-lp-916869-base arg teststring)))
 
2221
 
 
2222
(defun tab-completion-in-Ipython-buffers-lp-916869-base ()
 
2223
  (ipython-dedicated)
 
2224
  (goto-char (point-max))
 
2225
  (insert "pri")
 
2226
  (ipython-complete)
 
2227
  (sit-for 0.1) 
 
2228
  (assert (looking-back "print") nil "tab-completion-in-Ipython-buffers-lp-916869-test failed"))
 
2229
 
 
2230
 
2213
2231
(provide 'py-bug-numbered-tests)
2214
2232
;;; py-bug-numbered-tests.el ends here