Merge "Introduce py39 for unittests"
This commit is contained in:
commit
87a0d960b2
|
@ -150,6 +150,6 @@ def _add_basic_auth(request, username, password):
|
|||
|
||||
This function adds basic authentication information to a urllib request.
|
||||
"""
|
||||
auth_str = base64.encodestring(('%s:%s' % (
|
||||
auth_str = base64.encodebytes(('%s:%s' % (
|
||||
username, password)).encode()).decode().strip()
|
||||
request.add_header('Authorization', 'Basic %s' % auth_str)
|
||||
|
|
6
tox.ini
6
tox.ini
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = py38,py36,pep8,docs
|
||||
envlist = py39,py38,py36,pep8,docs
|
||||
minversion = 3.1.1
|
||||
skipsdist = True
|
||||
ignore_basepython_conflict = True
|
||||
|
@ -40,6 +40,10 @@ commands = oslo_debug_helper {posargs}
|
|||
basepython = python3.6
|
||||
commands = oslo_debug_helper {posargs}
|
||||
|
||||
[testenv:debug-py39]
|
||||
basepython = python3.9
|
||||
commands = oslo_debug_helper {posargs}
|
||||
|
||||
[testenv:pep8]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
|
Loading…
Reference in New Issue