Explorar o código

change this failing test so that it no longer fails

I see no good way to get the code block name, not sure how we used to do
this, but it is definitely not supported by the current code.
Eric Schulte %!s(int64=12) %!d(string=hai) anos
pai
achega
86ce0790a1
Modificáronse 2 ficheiros con 3 adicións e 5 borrados
  1. 2 4
      testing/examples/babel-dangerous.org
  2. 1 1
      testing/lisp/test-ob.el

+ 2 - 4
testing/examples/babel-dangerous.org

@@ -9,9 +9,7 @@
 There is no default value assigned to =x= variable. This is not permitted
 There is no default value assigned to =x= variable. This is not permitted
 anymore.
 anymore.
 
 
-#+name: carre(x)
-#+begin_src python
+#+name: carre
+#+begin_src python :var x
   return x*x
   return x*x
 #+end_src
 #+end_src
-
-#+name: carre

+ 1 - 1
testing/lisp/test-ob.el

@@ -486,7 +486,7 @@ echo \"[[file:./cv.cls]]\"
       (should
       (should
        (equal
        (equal
 	'(error
 	'(error
-	  "variable \"x\" in block \"carre\" must be assigned a default value")
+	  "Variable \"x\" must be assigned a default value")
 	err)))))
 	err)))))
 
 
 (ert-deftest test-org-babel/just-one-results-block ()
 (ert-deftest test-org-babel/just-one-results-block ()