Switch to Victoria tests
This repo has been using train tests and thus was missed by the bot to update from ussuri to victoria, update manually. See also the PTI in governance [1]. Fix pep8 failure in debtcollector/updating.py and remove six from the file. [1]: https://governance.openstack.org/tc/reference/project-testing-interface.html Change-Id: I9d07da7c5729f7ed33cc25f27cf70a7a41d1214c
This commit is contained in:
parent
056d78b178
commit
266192b11b
@ -3,7 +3,7 @@
|
|||||||
- check-requirements
|
- check-requirements
|
||||||
- lib-forward-testing-python3
|
- lib-forward-testing-python3
|
||||||
- openstack-lower-constraints-jobs
|
- openstack-lower-constraints-jobs
|
||||||
- openstack-python3-train-jobs
|
- openstack-python3-victoria-jobs
|
||||||
- periodic-stable-jobs
|
- periodic-stable-jobs
|
||||||
- publish-openstack-docs-pti
|
- publish-openstack-docs-pti
|
||||||
- release-notes-jobs-python3
|
- release-notes-jobs-python3
|
||||||
|
@ -14,19 +14,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import six
|
|
||||||
import wrapt
|
import wrapt
|
||||||
if six.PY3:
|
|
||||||
import inspect
|
from inspect import signature
|
||||||
Parameter = inspect.Parameter
|
|
||||||
Signature = inspect.Signature
|
|
||||||
get_signature = inspect.signature
|
|
||||||
else:
|
|
||||||
# Provide an equivalent but use funcsigs instead...
|
|
||||||
import funcsigs
|
|
||||||
Parameter = funcsigs.Parameter
|
|
||||||
Signature = funcsigs.Signature
|
|
||||||
get_signature = funcsigs.signature
|
|
||||||
|
|
||||||
from debtcollector import _utils
|
from debtcollector import _utils
|
||||||
|
|
||||||
@ -48,8 +38,8 @@ def updated_kwarg_default_value(name, old_value, new_value, message=None,
|
|||||||
prefix, postfix=postfix, message=message, version=version)
|
prefix, postfix=postfix, message=message, version=version)
|
||||||
|
|
||||||
def decorator(f):
|
def decorator(f):
|
||||||
sig = get_signature(f)
|
sig = signature(f)
|
||||||
varnames = list(six.iterkeys(sig.parameters))
|
varnames = list(sig.parameters.keys())
|
||||||
|
|
||||||
@wrapt.decorator
|
@wrapt.decorator
|
||||||
def wrapper(wrapped, instance, args, kwargs):
|
def wrapper(wrapped, instance, args, kwargs):
|
||||||
|
Loading…
Reference in New Issue
Block a user