Backport PR #40877 on branch 1.2.x (Skipt failing tests for numpy dev)
Backport PR #40877

Had to add the is_numpy_dev import, we could otherwise import from other directory if this would be preferrable