From 033f78a4bebdd93c35182b90606cf406c97c89b4 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 28 Mar 2024 11:44:29 +0900 Subject: [PATCH] Remove deprecated alias of test decorators (2/2) The attr decorator was deprecated during Pike cycle[1] and multiple cycles have passed since then. [1] 3b46d27c90aa6289724f4c137a0838c89d116b62 Depends-on: https://review.opendev.org/908551 Change-Id: Ib24acdd68d1639cd0353f40db1bc9a32b3cecae8 --- .../cleanup-attr-decorator-alias-78ce21eb20d87e01.yaml | 5 +++++ tempest/test.py | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 releasenotes/notes/cleanup-attr-decorator-alias-78ce21eb20d87e01.yaml diff --git a/releasenotes/notes/cleanup-attr-decorator-alias-78ce21eb20d87e01.yaml b/releasenotes/notes/cleanup-attr-decorator-alias-78ce21eb20d87e01.yaml new file mode 100644 index 0000000000..43091e1a8a --- /dev/null +++ b/releasenotes/notes/cleanup-attr-decorator-alias-78ce21eb20d87e01.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + The ``attr`` decorator is no longer available in the ``tempest.test`` + module. Use the ``tempest.lib.decorators`` module instead. diff --git a/tempest/test.py b/tempest/test.py index a7663678ab..72f2ab321c 100644 --- a/tempest/test.py +++ b/tempest/test.py @@ -31,7 +31,6 @@ from tempest.lib.common import api_microversion_fixture from tempest.lib.common import fixed_network from tempest.lib.common import profiler from tempest.lib.common import validation_resources as vr -from tempest.lib import decorators from tempest.lib import exceptions as lib_exc LOG = logging.getLogger(__name__) @@ -39,11 +38,6 @@ LOG = logging.getLogger(__name__) CONF = config.CONF -attr = debtcollector.moves.moved_function( - decorators.attr, 'attr', __name__, - version='Pike', removal_version='?') - - at_exit_set = set()