Skip to content

Commit c99ae39

Browse files
N-Dekkerhjmjohnson
authored andcommitted
STYLE: Clean-up experimental code ExceptionObject.TestWhat unit test
The try-catch wasn't meant to be part of the unit test!
1 parent ea54c7e commit c99ae39

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

Modules/Core/Common/test/itkExceptionObjectGTest.cxx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,5 @@ TEST(ExceptionObject, TestWhat)
118118

119119
EXPECT_EQ(what,
120120
file + (":" + std::to_string(exceptionObject.GetLine()) + ": in '" + location + "':\n") + description);
121-
122-
try
123-
{
124-
itkGenericExceptionMacro("Oops, something went exceptionally wrong!");
125-
}
126-
catch (const std::exception & exception)
127-
{
128-
std::cout << exception.what() << '\n';
129-
}
130121
}
131122
}

0 commit comments

Comments
 (0)