Make test_cpp_extensions_aot handle lack of pytest more gracefully (#53740)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53740
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Reviewed By: albanD
Differential Revision: D26956603
Pulled By: ezyang
fbshipit-source-id: 09ff60b29c4bd64044f4c9f0b7e17ffed33c30db