Skip to content

Commit 37b2b40

Browse files
committed
change assert type
1 parent 3479538 commit 37b2b40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Framework/DataHandling/test/SaveNXSPETest.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ class SaveNXSPETest : public CxxTest::TestSuite {
199199

200200
void test_WorkspaceBadName() {
201201
auto saver = setupWithWSName("bad/name");
202-
TS_ASSERT_THROWS_ANYTHING(saver->execute());
202+
TS_ASSERT_THROWS_EQUALS(saver->execute(), const std::runtime_error &e, std::string(e.what()),
203+
"Some invalid Properties found: \n"
204+
" InputWorkspace: The input workspace name cannot contain a \'/\' character.");
203205
TS_ASSERT(!saver->isExecuted());
204206
}
205207

0 commit comments

Comments
 (0)