-
- Downloads
Fix checksumming in Python3; add more fetch tests (#3941)
* Checksum code wasn't opening binary files as binary. - Fixes Python 3 issue where files are opened as unicode text by default, and decoding fails for binary blobs. * Simplify fetch test parametrization. * - add tests for URL fetching and checksumming. - fix coverage on interface functions in FetchStrategy superclass - add some extra crypto tests.
Showing
- lib/spack/spack/fetch_strategy.py 27 additions, 11 deletionslib/spack/spack/fetch_strategy.py
- lib/spack/spack/test/conftest.py 10 additions, 3 deletionslib/spack/spack/test/conftest.py
- lib/spack/spack/test/git_fetch.py 4 additions, 12 deletionslib/spack/spack/test/git_fetch.py
- lib/spack/spack/test/hg_fetch.py 4 additions, 12 deletionslib/spack/spack/test/hg_fetch.py
- lib/spack/spack/test/svn_fetch.py 4 additions, 12 deletionslib/spack/spack/test/svn_fetch.py
- lib/spack/spack/test/url_fetch.py 93 additions, 0 deletionslib/spack/spack/test/url_fetch.py
- lib/spack/spack/util/crypto.py 9 additions, 9 deletionslib/spack/spack/util/crypto.py
- var/spack/repos/builtin.mock/packages/url-test/package.py 35 additions, 0 deletionsvar/spack/repos/builtin.mock/packages/url-test/package.py
Loading
Please register or sign in to comment