diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index bd0c6669688062a2f3743075fb947e100a2b278e..c17c78c0080997ec112cdd6f3831711d80c788bd 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -125,6 +125,9 @@ if(((NOT WITH_ROCM) AND (NOT WITH_GPU)) OR WIN32) LIST(REMOVE_ITEM TEST_OPS test_disable_signal_handler) endif() +# Temporally disable test_deprecated_decorator +LIST(REMOVE_ITEM TEST_OPS test_deprecated_decorator) + if(WIN32) LIST(REMOVE_ITEM TEST_OPS test_multiprocess_reader_exception) LIST(REMOVE_ITEM TEST_OPS test_trainer_desc) diff --git a/python/paddle/utils/deprecated.py b/python/paddle/utils/deprecated.py index b17bd70c91af240cf2dccadac2d20fb0481ea7f3..b7f5ff28d6c7417c82174c331d213387240b8ec4 100755 --- a/python/paddle/utils/deprecated.py +++ b/python/paddle/utils/deprecated.py @@ -54,8 +54,8 @@ def deprecated(update_to="", since="", reason="", level=0): """ def decorator(func): - # TODO(zhiqiu): We temporally disable the warnings for 2.0-bata, and it should be re-enabled in the future. - # return func + # TODO(zhiqiu): temporally disable the warnings + return func """construct warning message, and return a decorated function or class.""" assert isinstance(update_to, str), 'type of "update_to" must be str.' assert isinstance(since, str), 'type of "since" must be str.'