summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2013-04-03 11:30:08 -0600
committerEric Schulte <schulte.eric@gmail.com>2013-04-03 11:30:14 -0600
commit86ce0790a1836ea564f060a58a7763107b3a91cf (patch)
treee4efec63d69e2346f9a689fec45dbf467ca096ed
parent8cda3ca6050a9df1e95475a68858cdf200d1126b (diff)
downloadorg-mode-86ce0790a1836ea564f060a58a7763107b3a91cf.tar.gz
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.
-rw-r--r--testing/examples/babel-dangerous.org6
-rw-r--r--testing/lisp/test-ob.el2
2 files changed, 3 insertions, 5 deletions
diff --git a/testing/examples/babel-dangerous.org b/testing/examples/babel-dangerous.org
index 1aa0786..ad8f6ac 100644
--- a/testing/examples/babel-dangerous.org
+++ b/testing/examples/babel-dangerous.org
@@ -9,9 +9,7 @@
There is no default value assigned to =x= variable. This is not permitted
anymore.
-#+name: carre(x)
-#+begin_src python
+#+name: carre
+#+begin_src python :var x
return x*x
#+end_src
-
-#+name: carre
diff --git a/testing/lisp/test-ob.el b/testing/lisp/test-ob.el
index dc10f76..bbbfbc4 100644
--- a/testing/lisp/test-ob.el
+++ b/testing/lisp/test-ob.el
@@ -486,7 +486,7 @@ echo \"[[file:./cv.cls]]\"
(should
(equal
'(error
- "variable \"x\" in block \"carre\" must be assigned a default value")
+ "Variable \"x\" must be assigned a default value")
err)))))
(ert-deftest test-org-babel/just-one-results-block ()