Commits

Eric Larson  committed 45ee6c2

Support for --assert=plain option

  • Participants
  • Parent commits 3a0e7f3

Comments (0)

Files changed (1)

 (defvar pytest-global-name "pytest")
 (defvar pytest-use-verbose nil)
 (defvar pytest-loop-on-failing nil)
+(defvar pytest-assert-plain nil)
 
 (defun run-pytest (&optional tests debug failed)
   "run pytest"
 		       ;; It doesn't makes sense to loop on failing
 		       ;; without stopping at the broken test. Added
 		       ;; the -x flag.
-                       (if pytest-loop-on-failing "-x -f" "")))
+                       (if pytest-loop-on-failing "-x -f" "")
+                       (if pytest-loop-on-failing " " "")
+
+		       ;; Don't try to rewrite the errors
+		       (if pytest-assert-plain "--assert=plain" "")))
          (tnames (if tests tests "")))
     (funcall (if debug 'pdb
                '(lambda (command)