Skip to content

Commit a8bbfd3

Browse files
committed
Update test_interpreter.cpp
1 parent c22a5b8 commit a8bbfd3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/test_embed/test_interpreter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ TEST_CASE("Override cache") {
138138

139139
TEST_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");

0 commit comments

Comments
 (0)