diff --git a/.travis.yml b/.travis.yml
index 33e69a9..494a792 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,6 +4,7 @@ python:
- 2.7
- 3.6
- 3.7
+ - 3.8
install:
pip install tox-travis
script:
diff --git a/tests/test_urls.py b/tests/test_urls.py
index 8c514fb..6095378 100644
--- a/tests/test_urls.py
+++ b/tests/test_urls.py
@@ -447,17 +447,31 @@ def test_sphinx_resource_urls(app, status, warning):
content = open(path).read()
- chunks = [
- # Sphinx's resources URLs
- '',
- '',
- '',
- ]
+ if sphinx.version_info < (2, 4, 0):
+ chunks = [
+ # Sphinx's resources URLs
+ '',
+ '',
+ '',
+ ]
+ else:
+ # #6925: html: Remove redundant type="text/javascript" from ',
+ '',
+ '',
+ ]
if sphinx.version_info >= (1, 8):
- chunks.append(
- '',
- )
+ if sphinx.version_info < (2, 4, 0):
+ chunks.append(
+ '',
+ )
+ else:
+ chunks.append(
+ '',
+ )
for chunk in chunks:
assert chunk in content
diff --git a/tox.ini b/tox.ini
index 53e026d..1d7d735 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,21 +2,24 @@
envlist =
docs
py27-sphinx{17,18}
- py{36,37}-sphinx{17,18,20,21,22}
+ py{36,37,38}-sphinx{17,18,20,21,22,23,24,30}
[testenv]
deps =
pytest
pdbpp
.
- sphinx17: sphinx==1.7.9
- sphinx18: sphinx==1.8.5
- sphinx20: sphinx==2.0.1
- sphinx21: sphinx==2.1.2
- sphinx22: sphinx==2.2.0
+ sphinx17: sphinx~=1.7.0
+ sphinx18: sphinx~=1.8.0
+ sphinx20: sphinx~=2.0.0
+ sphinx21: sphinx~=2.1.0
+ sphinx22: sphinx~=2.2.0
+ sphinx23: sphinx~=2.3.0
+ sphinx24: sphinx~=2.4.0
+ sphinx30: sphinx~=3.0.0
commands = pytest {posargs}
-[testenv:py37-sphinx21]
+[testenv:py38-sphinx30]
deps =
{[testenv]deps}
pytest-cov