Commits

Augie Fackler  committed 2e70d0b

Remove some debug code and name the non-pdb buffer "*nosetests*" instead of "*compilation*"

  • Participants
  • Parent commits c3e735f

Comments (0)

Files changed (1)

 
 (defun run-nose (&optional tests debug)
   "run nosetests"
-  (interactive)
-
   (let* ((nose (nose-find-test-runner))
          (where (expand-file-name "../.." (file-name-directory nose)))
          (args (if debug "--pdb" ""))
          (tnames (if tests tests "")))
-    (print nose)
-    (print args)
-    (print tnames)
-    (funcall (if debug 'pdb 'compile)
+    (funcall (if debug 'pdb '(lambda (command)
+                               (compilation-start command
+                                                  nil
+                                                  (lambda (mode) (concat "*nosetests*")))))
              (format "%s -v %s -w %s -c %s/setup.cfg %s"
                      (nose-find-test-runner) args where where tnames)))
   )
   (nosetests-one t))
 
 (defun nose-find-test-runner ()
-  (interactive)
   (message
    (let ((result (reduce '(lambda (x y) (or x y))
                          (mapcar 'nose-find-test-runner-names nose-project-names))))
           runner)))))
 
 (defun nose-py-testable ()
-  (interactive)
   (let ((remember-point (point)))
     (re-search-backward
      "^ \\{0,4\\}\\(class\\|def\\)[ \t]+\\([a-zA-Z0-9_]+\\)" nil t)