TST: Test that the warning registry is empty after assert_warns

Also minor doc change to the statement that this class was
copied from NumPy