TST: Fix error in assert_produces_warning.

When I copied this over and sent to @cpcloud,
I thought the indentation was wrong and changed it.
Turned out I was wrong -- sorry about that!

Now all the doctests pass...