ARROW-17389: [Python] Properly exclude tests when PYARROW_INSTALL_TESTS=0 (#13904)
ARROW-17389: [Python] Properly exclude tests when PYARROW_INSTALL_TESTS=0 (#13904)

Authored-by: Miles Granger <5f8a3a758c2a737f59347a2aaa87f2bf5c1f5e7b@gmail.com>
Signed-off-by: Joris Van den Bossche <36c737f86d71d8ee1ddeb1e5c83102ee5de8f97c@gmail.com>
icexelloss/arrow,kou/arrow,apache/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,kou/arrow,icexelloss/arrow,kou/arrow,icexelloss/arrow,apache/arrow,icexelloss/arrow,kou/arrow,apache/arrow,icexelloss/arrow,apache/arrow,kou/arrow,icexelloss/arrow,apache/arrow,apache/arrow,kou/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,kou/arrow,kou/arrow,kou/arrow,apache/arrow,kou/arrow,apache/arrow,kou/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,apache/arrow,kou/arrow,kou/arrow,icexelloss/arrow,apache/arrow