Thinking a bit more, the test doesn't really do what it is supposed to do. Hmm... perhaps the section of `ndarraytyps.h` where the includes are could be enclosed
```
#define NPY_DEPRECATED_INCLUDES
...
#undef NPY_DEPRECATED_INCLUDES
```
That way we can check that it is only included where it is supposed to be.