diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2019-03-17 12:49:36 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2019-03-17 12:58:03 -0700 |
commit | f210475489fe7f8f9fffbb68f7199bcd271ac0be (patch) | |
tree | cf41f36b12144b3cf614030dd047f138bf6b5a86 /tests/test_ext_coverage.py | |
parent | 42c8fbd6f30d040683a56277ba59732c028623ab (diff) | |
download | sphinx-git-f210475489fe7f8f9fffbb68f7199bcd271ac0be.tar.gz |
Python-3-only clean ups discovered by pyupgrade
https://github.com/asottile/pyupgrade
> A tool to automatically upgrade syntax for newer versions of the
> language.
- Drop u str prefix
- Drop base object inheritance
- Drop args to super()
- Use set literals
- Use dict comprehension
- Use set comprehension
Diffstat (limited to 'tests/test_ext_coverage.py')
-rw-r--r-- | tests/test_ext_coverage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_ext_coverage.py b/tests/test_ext_coverage.py index d02d65feb..73181909d 100644 --- a/tests/test_ext_coverage.py +++ b/tests/test_ext_coverage.py @@ -37,7 +37,7 @@ def test_build(app, status, warning): undoc_py, undoc_c = pickle.loads((app.outdir / 'undoc.pickle').bytes()) assert len(undoc_c) == 1 # the key is the full path to the header file, which isn't testable - assert list(undoc_c.values())[0] == set([('function', 'Py_SphinxTest')]) + assert list(undoc_c.values())[0] == {('function', 'Py_SphinxTest')} assert 'autodoc_target' in undoc_py assert 'funcs' in undoc_py['autodoc_target'] |