Closes #1748: SyntaxError in sphinx/ext/ifconfig.py with Python 2.6.

This commit is contained in:
shimizukawa committed 2015-03-02 22:43:14 +09:00
1 parent 03a60a39fb
commit d23f3e75dd
5 files changed
+42 -1

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
extensions = ['sphinx.ext.ifconfig']
master_doc = 'index'
confval1 = True
def setup(app):
app.add_config_value('confval1', False, None)
app.add_config_value('confval2', False, None)
+11
View File
@@ -0,0 +1,11 @@
ifconfig
========
.. ifconfig:: confval1
spam
.. ifconfig:: confval2
egg
+19
View File
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
"""
test_ext_ifconfig
~~~~~~~~~~~~~~~~~
Test sphinx.ext.ifconfig extension.
:copyright: Copyright 2007-2015 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from util import with_app
@with_app(testroot='ext-ifconfig')
def test_ifconfig(app, status, warning):
app.builder.build_all()