I think the warning was not really useful as there is nothing one can do about it.
This will fix a bunch of tests.
/cc @lohenry