未验证 提交 68ae6345 编写于 作者: L Leo Chen 提交者: GitHub

temporally disable the warnings (#35560)

* temporally disable the warnings

* disable ut
上级 d22914fd
......@@ -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)
......
......@@ -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.'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册