wbond / oscrypto

Compiler-free Python crypto library backed by the OS, supporting CPython and PyPy
MIT License
318 stars 71 forks source link

allow skipping tests needing internet connectivity #57

Closed jnahmias closed 2 years ago

jnahmias commented 2 years ago

As part of building oscrypto for Debian GNU/Linux, we run the testsuite on our build machine -- which has no internet access. In order to accommodate this, I wrote this patch which skips the tests requiring internet access. To use, set the environment variable OSCRYPTO_SKIP_INTERNET_TESTS.

wbond commented 2 years ago

Looks good to me, thanks! I've tweaked it a little and added some docs to the readme.