Commits

Anonymous committed 66ed5e4

Get next-error to work in *nosetests* buffer.

Tweak the launch of the *nosetests* compilation buffer so that next-error
jumps into the failing test (instead of somewhere deep in the stack trace).

Going with the heuristic that test methods start with 'test_'

  • Participants
  • Parent commits d413c24

Comments (0)

Files changed (1)

     (funcall (if debug
                  'pdb
                '(lambda (command)
-                  (compilation-start command
-                                     nil
-                                     (lambda (mode) (concat "*nosetests*")))))
+                  (let ((compilation-error-regexp-alist
+                         '(("  File \"\\(.*\\)\", line \\([0-9]+\\), in test_" 1 2))))
+                    (compilation-start command
+                                       nil
+                                       (lambda (mode) (concat "*nosetests*"))))))
              (format
               (concat "%s "
                       (if nose-use-verbose "-v " "")