TST: Assert that a RuntimeWarning is triggered