Use attributes
instead of deprecated assertions
#15758
Merged
attributes
instead of deprecated assertions
#15758