]> git.eshelyaron.com Git - emacs.git/commitdiff
; Update test for previous change
authorNoam Postavsky <npostavs@gmail.com>
Mon, 22 May 2017 16:32:04 +0000 (12:32 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 29 May 2017 03:33:25 +0000 (23:33 -0400)
* test/lisp/progmodes/python-tests.el
(python-indent-after-backslash-4): Indent after backslash is now
python-indent-offset.

test/lisp/progmodes/python-tests.el

index 9aaae396a69de60f68de7157a203dac4228ea1a8..be03535129517fb53a0cc4d652c737c68ac8b824 100644 (file)
@@ -745,8 +745,8 @@ with open('/path/to/some/file/you/want/to/read') as file_1, \\\\
   (python-tests-with-temp-buffer
    "
 super_awful_assignment = some_calculation() and \\\\
-                         another_calculation() and \\\\
-                         some_final_calculation()
+    another_calculation() and \\\\
+    some_final_calculation()
 "
    (python-tests-look-at
     "super_awful_assignment = some_calculation() and \\\\")
@@ -755,10 +755,10 @@ super_awful_assignment = some_calculation() and \\\\
    (python-tests-look-at "another_calculation() and \\\\")
    (should (eq (car (python-indent-context))
                :after-backslash-assignment-continuation))
-   (should (= (python-indent-calculate-indentation) 25))
+   (should (= (python-indent-calculate-indentation) python-indent-offset))
    (python-tests-look-at "some_final_calculation()")
    (should (eq (car (python-indent-context)) :after-backslash))
-   (should (= (python-indent-calculate-indentation) 25))))
+   (should (= (python-indent-calculate-indentation) python-indent-offset))))
 
 (ert-deftest python-indent-after-backslash-5 ()
   "Dotted continuation bizarre example."