summaryrefslogtreecommitdiff
path: root/LICENSE-MIT
diff options
context:
space:
mode:
authorTamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>2020-01-28 22:57:26 -0800
committerGitHub <noreply@github.com>2020-01-28 22:57:26 -0800
commit60ed6d2012b6a540f55cc5b20ab0dd7ef043a971 (patch)
tree241244a5f519e39c8eb7f891a128b5503802617a /LICENSE-MIT
parentf7ec09d30bd835b8318b48365edece35d08b4114 (diff)
downloadspack-60ed6d2012b6a540f55cc5b20ab0dd7ef043a971.tar.gz
spack-60ed6d2012b6a540f55cc5b20ab0dd7ef043a971.tar.bz2
spack-60ed6d2012b6a540f55cc5b20ab0dd7ef043a971.tar.xz
spack-60ed6d2012b6a540f55cc5b20ab0dd7ef043a971.zip
bugfix: correct exception message matching in tests (#14655)
This commit makes two fundamental corrections to tests: 1) Changes 'matches' to the correct 'match' argument for 'pytest.raises' (for all affected tests except those checking for 'SystemExit'); 2) Replaces the 'match' argument for tests expecting 'SystemExit' (since the exit code is retained instead) with 'capsys' error message capture. Both changes are needed to ensure the associated exception message is actually checked.
Diffstat (limited to 'LICENSE-MIT')
0 files changed, 0 insertions, 0 deletions