Merge "Introduce py39 for unittests"

This commit is contained in:
Zuul 2020-11-09 18:20:33 +00:00 committed by Gerrit Code Review
commit 87a0d960b2
2 changed files with 6 additions and 2 deletions

View File

@ -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)

View File

@ -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