summaryrefslogtreecommitdiff
path: root/tests/test_ext_doctest.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_ext_doctest.py')
-rw-r--r--tests/test_ext_doctest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_ext_doctest.py b/tests/test_ext_doctest.py
index 6ec0495ef..6c628904f 100644
--- a/tests/test_ext_doctest.py
+++ b/tests/test_ext_doctest.py
@@ -29,16 +29,16 @@ def test_highlight_language_default(app, status, warning):
app.build()
doctree = app.env.get_doctree('doctest')
for node in doctree.findall(nodes.literal_block):
- assert node['language'] in ('python3', 'pycon3', 'none')
+ assert node['language'] in {'python', 'pycon', 'none'}
@pytest.mark.sphinx('dummy', testroot='ext-doctest',
confoverrides={'highlight_language': 'python'})
-def test_highlight_language_python2(app, status, warning):
+def test_highlight_language_python3(app, status, warning):
app.build()
doctree = app.env.get_doctree('doctest')
for node in doctree.findall(nodes.literal_block):
- assert node['language'] in ('python', 'pycon', 'none')
+ assert node['language'] in {'python', 'pycon', 'none'}
def test_is_allowed_version():