Run docs tox env under py3
...and fix this one warning-treated-as-error that crept in since https://github.com/openstack/swift/commit/d185b60 Change-Id: Id46ee3ab23e2703170191528427aaa2788aba1ee
This commit is contained in:
parent
d016693875
commit
6c93c57685
|
@ -430,6 +430,7 @@ class SwiftHttpProtocol(wsgi.HttpProtocol):
|
||||||
|
|
||||||
# for py3:
|
# for py3:
|
||||||
def get_default_type(self):
|
def get_default_type(self):
|
||||||
|
'''If the client didn't provide a content type, leave it blank.'''
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -150,7 +150,7 @@ setenv = SWIFT_TEST_IN_PROCESS=1
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python2.7
|
basepython = python3
|
||||||
deps = -r{toxinidir}/doc/requirements.txt
|
deps = -r{toxinidir}/doc/requirements.txt
|
||||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue