mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-21 16:09:22 +00:00
Update test_interpreter.cpp
This commit is contained in:
parent
4c3d1c8d67
commit
836e33dd56
@ -311,7 +311,7 @@ PYBIND11_EMBEDDED_MODULE(test_memory_leak, m) {
|
||||
TEST_CASE("Test that C++ objects are properly deconstructed.") {
|
||||
{
|
||||
auto local = py::dict();
|
||||
local['__builtins__'] = py::globals()['__builtins__'];
|
||||
local["__builtins__"] = py::globals()["__builtins__"];
|
||||
py::exec(R"(
|
||||
from test_memory_leak import TestObject
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user