"vscode:/vscode.git/clone" did not exist on "2ae36a97fd9439de883bb5600db26634ee34d494"
Commit cd2d3ad5 authored by Dean Moldovan's avatar Dean Moldovan
Browse files

Fix embedded threads test on MSVC2015 / Python 2.7

parent 9d698f7f
......@@ -205,7 +205,7 @@ TEST_CASE("Threads") {
for (auto i = 0; i < num_threads; ++i) {
threads.emplace_back([&]() {
py::gil_scoped_acquire gil{};
py::exec("count += 1", py::globals(), locals);
locals["count"] = locals["count"].cast<int>() + 1;
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment