spack/lib/spack
Tamara Dahlgren 60ed6d2012
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.
2020-01-28 22:57:26 -08:00
..
docs Note about Intel compiler segfault with long paths (#14652) 2020-01-28 14:57:06 -06:00
env copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
external copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
llnl Fix handling of filter_file exceptions (#14651) 2020-01-28 12:49:26 -08:00
spack bugfix: correct exception message matching in tests (#14655) 2020-01-28 22:57:26 -08:00