~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-02-01 15:24:57 UTC
  • Revision ID: andreas.roehler@online.de-20120201152457-igehalyflqzo2wzm
`py-execute-region-switch' fixed

`py-ask-about-save' previous prodeeding restored,
as used by `py-execute-import-or-reload', saving
possibly edited buffers before reload is reasonable

Show diffs side-by-side

added added

removed removed

Lines of Context:
628
628
    (py-bug-tests-intern 'UnicodeEncodeError-lp:550661-base 2 teststring)))
629
629
 
630
630
(defun UnicodeEncodeError-lp:550661-base ()
631
 
  (let ((py-shell-switch-buffers-on-execute t))
632
631
    (goto-char 48)
633
632
    (push-mark)
634
633
    (end-of-line)
635
 
    (py-execute-region (line-beginning-position) (point))
 
634
    (py-execute-region-switch (line-beginning-position) (point))
636
635
    (sit-for 0.2)
637
636
    (when (looking-back comint-prompt-regexp)
638
637
      (goto-char (1- (match-beginning 0))))
639
638
    (sit-for 0.1)
640
 
    (assert (or (looking-back "©")(looking-at "©")) nil "UnicodeEncodeError-lp:550661-test failed")))
 
639
    (assert (or (looking-back "©")(looking-at "©")) nil "UnicodeEncodeError-lp:550661-test failed"))
641
640
 
642
641
(defun indentation-of-continuation-lines-lp:691185-test (&optional arg load-branch-function)
643
642
  "With ARG greater 1 keep test buffer open.