Commit cd2d3ad5 by Dean Moldovan

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