mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Unescape quotation marks where possible
This commit is contained in:
@@ -118,7 +118,7 @@ def test_html_warnings(app, warning):
|
||||
html_warnings_exp = HTML_WARNINGS % {
|
||||
'root': re.escape(app.srcdir.replace(os.sep, '/'))}
|
||||
assert re.match(html_warnings_exp + '$', html_warnings), \
|
||||
'Warnings don\'t match:\n' + \
|
||||
"Warnings don't match:\n" + \
|
||||
'--- Expected (regex):\n' + html_warnings_exp + \
|
||||
'--- Got:\n' + html_warnings
|
||||
|
||||
|
||||
@@ -159,7 +159,7 @@ def test_latex_warnings(app, status, warning):
|
||||
warnings_exp = LATEX_WARNINGS % {
|
||||
'root': re.escape(app.srcdir.replace(os.sep, '/'))}
|
||||
assert re.match(warnings_exp + '$', warnings), \
|
||||
'Warnings don\'t match:\n' + \
|
||||
"Warnings don't match:\n" + \
|
||||
'--- Expected (regex):\n' + warnings_exp + \
|
||||
'--- Got:\n' + warnings
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ def test_texinfo_warnings(app, status, warning):
|
||||
warnings_exp = TEXINFO_WARNINGS % {
|
||||
'root': re.escape(app.srcdir.replace(os.sep, '/'))}
|
||||
assert re.match(warnings_exp + '$', warnings), \
|
||||
'Warnings don\'t match:\n' + \
|
||||
"Warnings don't match:\n" + \
|
||||
'--- Expected (regex):\n' + warnings_exp + \
|
||||
'--- Got:\n' + warnings
|
||||
|
||||
|
||||
@@ -223,13 +223,13 @@ def test_format_signature(app):
|
||||
directive.env.config.autoclass_content = 'both'
|
||||
|
||||
class F2:
|
||||
'''some docstring for F2.'''
|
||||
"""some docstring for F2."""
|
||||
def __init__(self, *args, **kw):
|
||||
'''
|
||||
"""
|
||||
__init__(a1, a2, kw1=True, kw2=False)
|
||||
|
||||
some docstring for __init__.
|
||||
'''
|
||||
"""
|
||||
class G2(F2):
|
||||
pass
|
||||
|
||||
|
||||
@@ -122,7 +122,7 @@ def test_quickstart_all_answers(tempdir):
|
||||
'Separate source and build': 'y',
|
||||
'Name prefix for templates': '.',
|
||||
'Project name': 'STASI™',
|
||||
'Author name': 'Wolfgang Schäuble & G\'Beckstein',
|
||||
'Author name': "Wolfgang Schäuble & G'Beckstein",
|
||||
'Project version': '2.0',
|
||||
'Project release': '2.0.1',
|
||||
'Project language': 'de',
|
||||
@@ -158,7 +158,7 @@ def test_quickstart_all_answers(tempdir):
|
||||
assert ns['source_suffix'] == '.txt'
|
||||
assert ns['root_doc'] == 'contents'
|
||||
assert ns['project'] == 'STASI™'
|
||||
assert ns['copyright'] == '%s, Wolfgang Schäuble & G\'Beckstein' % \
|
||||
assert ns['copyright'] == "%s, Wolfgang Schäuble & G'Beckstein" % \
|
||||
time.strftime('%Y')
|
||||
assert ns['version'] == '2.0'
|
||||
assert ns['release'] == '2.0.1'
|
||||
|
||||
Reference in New Issue
Block a user