TST: use assert_warns and assert_no_warnings instead of the older boilerplate