summaryrefslogtreecommitdiff
path: root/tests/test_ext_todo.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-03-19 01:08:42 +0900
committerGitHub <noreply@github.com>2019-03-19 01:08:42 +0900
commitc19fbfb333a21786496e9cde0f5d440c57d30df4 (patch)
treecf41f36b12144b3cf614030dd047f138bf6b5a86 /tests/test_ext_todo.py
parent42c8fbd6f30d040683a56277ba59732c028623ab (diff)
parentf210475489fe7f8f9fffbb68f7199bcd271ac0be (diff)
downloadsphinx-git-c19fbfb333a21786496e9cde0f5d440c57d30df4.tar.gz
Merge pull request #6185 from jdufresne/pyupgrade
Python-3-only clean ups discovered by pyupgrade
Diffstat (limited to 'tests/test_ext_todo.py')
-rw-r--r--tests/test_ext_todo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_ext_todo.py b/tests/test_ext_todo.py
index 2ce7ac95e..3fca33f6f 100644
--- a/tests/test_ext_todo.py
+++ b/tests/test_ext_todo.py
@@ -54,9 +54,9 @@ def test_todo(app, status, warning):
# check handled event
assert len(todos) == 3
- assert set(todo[1].astext() for todo in todos) == {'todo in foo',
- 'todo in bar',
- 'todo in param field'}
+ assert {todo[1].astext() for todo in todos} == {'todo in foo',
+ 'todo in bar',
+ 'todo in param field'}
@pytest.mark.sphinx('html', testroot='ext-todo', freshenv=True,
@@ -92,9 +92,9 @@ def test_todo_not_included(app, status, warning):
# check handled event
assert len(todos) == 3
- assert set(todo[1].astext() for todo in todos) == {'todo in foo',
- 'todo in bar',
- 'todo in param field'}
+ assert {todo[1].astext() for todo in todos} == {'todo in foo',
+ 'todo in bar',
+ 'todo in param field'}
@pytest.mark.sphinx('latex', testroot='ext-todo', freshenv=True,