Anonymous committed 2d24245

Fixed test-one always testing the whole module in tab indented files.

Fixed inner-testable not taking account of tab indentation.

  • Participants
  • Parent commits e6ffab0

Comments (0)

Files changed (1)

               (concat "%s "
                       (if nose-use-verbose "-v " "")
                       "%s -w %s -c %ssetup.cfg %s")
-              (nose-find-test-runner) args where where tnames)))
+              nose args where where tnames)))
 (defun nosetests-all (&optional debug failed)
 (defun inner-testable ()
-     "^ \\{0,4\\}\\(class\\|def\\)[ \t]+\\([a-zA-Z0-9_]+\\)" nil t)
+     "^\\(?: \\{0,4\\}\\|\t\\)\\(class\\|def\\)[ \t]+\\([a-zA-Z0-9_]+\\)" nil t)
     (buffer-substring-no-properties (match-beginning 2) (match-end 2))))
 (defun outer-testable ()