summaryrefslogtreecommitdiff
path: root/tests/roots/test-directive-code
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-05-30 10:44:48 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-01 13:42:57 +0900
commite001d358d0dd83f260ec696e2c14a65bd63cde13 (patch)
treeac28ed763003f0e61f8476dc2b9fef3389d67a6c /tests/roots/test-directive-code
parente9c5e3656fc74c66eb31f897c9f485a10912a2c9 (diff)
downloadsphinx-git-e001d358d0dd83f260ec696e2c14a65bd63cde13.tar.gz
Add :force: option to code directives
Diffstat (limited to 'tests/roots/test-directive-code')
-rw-r--r--tests/roots/test-directive-code/error.inc1
-rw-r--r--tests/roots/test-directive-code/force.rst16
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/roots/test-directive-code/error.inc b/tests/roots/test-directive-code/error.inc
new file mode 100644
index 000000000..472828080
--- /dev/null
+++ b/tests/roots/test-directive-code/error.inc
@@ -0,0 +1 @@
+not a python script!
diff --git a/tests/roots/test-directive-code/force.rst b/tests/roots/test-directive-code/force.rst
new file mode 100644
index 000000000..1834b3ac6
--- /dev/null
+++ b/tests/roots/test-directive-code/force.rst
@@ -0,0 +1,16 @@
+force option
+============
+
+.. code:: python
+ :force:
+
+ not a python script!
+
+.. code-block:: python
+ :force:
+
+ not a python script!
+
+.. literalinclude:: error.inc
+ :language: python
+ :force: