mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
This PR was rebased on newest main, but was written a long time ago when all the framework test-files were still in experimental. I have not re-written my local git-history, since there are MANY updates to those files (and I dare not risk it).
These tests are a copy of the tests in ../cryptodome with Cryptodome replaced by Crypto.
You can run the following command to update the tests:
rm *.py && cp ../cryptodome/*.py . && sed -i -e 's/Cryptodome/Crypto/' *.py
The original pycrypto PyPI package that provided the Crypto Python package has not been updated since 2013, so it is reasonable to assume that people will use the replacement pycryptodome PyPI package that has a (mostly) compatible API.
The pycryptodome functionality is also available in the pycryptodomex PyPI package which provides the Cryptodome Python package.
To ensure our modeling actually covers both ways of importing the same functionality, we have this convoluted test setup.