summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-03-05 18:59:05 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-03-05 19:03:06 +0000
commit29d7166af203b33958f7f6c261ae3813e27b32cc (patch)
treea5fe2f329f5c2db7826b203334ca8093142bc2e3 /tests
parent44326fe2476db44e8c2a60d9326c9c3ac2865c03 (diff)
downloadsphinx-git-29d7166af203b33958f7f6c261ae3813e27b32cc.tar.gz
Drop OrderedDict
Since Python 3.7, dicts maintain insertion order.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_project.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_project.py b/tests/test_project.py
index d4e0a0d8c..9eba93164 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -1,7 +1,5 @@
"""Tests project module."""
-from collections import OrderedDict
-
import pytest
from sphinx.project import Project
@@ -55,8 +53,7 @@ def test_project_path2doc(app):
@pytest.mark.sphinx(srcdir='project_doc2path', testroot='basic')
def test_project_doc2path(app):
- source_suffix = OrderedDict([('.rst', 'restructuredtext'),
- ('.txt', 'restructuredtext')])
+ source_suffix = {'.rst': 'restructuredtext', '.txt': 'restructuredtext'}
project = Project(app.srcdir, source_suffix)
assert project.doc2path('index') == (app.srcdir / 'index.rst')