Refactor `is_packet_capture_supported()` by `expect_throws()`

Test: atest NetworkStaticLibHostPythonTests
Change-Id: Ibbc249e3d6ef182207ba3fe37c47bab7e099f2b0
1 file changed