mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 08:52:13 -05:00
Closes #1748: SyntaxError in sphinx/ext/ifconfig.py with Python 2.6.
This commit is contained in:
1 parent
03a60a39fb
commit
d23f3e75dd
5 files changed
+42
-1
No files matched your search
@@ -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)
|
||||
@@ -0,0 +1,11 @@
|
||||
ifconfig
|
||||
========
|
||||
|
||||
.. ifconfig:: confval1
|
||||
|
||||
spam
|
||||
|
||||
.. ifconfig:: confval2
|
||||
|
||||
egg
|
||||
|
||||
@@ -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()
|
||||
Reference in new issue
Block a user