Merge pull request #1650 from atgeirr/fix-embedded-python-test

Use braces to force correct parsing.
This commit is contained in:
Joakim Hove 2020-03-27 10:49:34 +01:00 committed by GitHub
commit 7fc75ce61c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ BOOST_AUTO_TEST_CASE(INSTANTIATE) {
*/
BOOST_CHECK(! Python::enabled() );
BOOST_CHECK_THROW( Python(Python::Enable::ON), std::logic_error );
BOOST_CHECK_THROW( Python{Python::Enable::ON}, std::logic_error );
Python python_cond(Python::Enable::COND);
BOOST_CHECK(!python_cond);