File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ TEST_CASE("Override cache") {
138138
139139TEST_CASE (" Import error handling" ) {
140140 REQUIRE_NOTHROW (py::module_::import (" widget_module" ));
141-
142141 REQUIRE_THROWS_WITH (py::module_::import (" throw_exception" ), " ImportError: C++ Error" );
143142 REQUIRE_THROWS_WITH (py::module_::import (" throw_error_already_set" ),
144143 Catch::Contains (" ImportError: initialization failed" ));
@@ -321,7 +320,7 @@ TEST_CASE("Restart the interpreter") {
321320 REQUIRE (cpp_module.attr (" add" )(1 , 2 ).cast <int >() == 3 );
322321
323322 // Also verify submodules work
324- REQUIRE (module_ .attr (" sub" ).attr (" add" )(1 , 41 ).cast <int >() == 42 );
323+ REQUIRE (cpp_module .attr (" sub" ).attr (" add" )(1 , 41 ).cast <int >() == 42 );
325324
326325 // C++ type information is reloaded and can be used in python modules.
327326 auto py_module = py::module_::import (" test_interpreter" );
You can’t perform that action at this time.
0 commit comments