[2.7] unsilence deprecations but prevent them breaking the tests