Fix embedded threads test on MSVC2015 / Python 2.7

This commit is contained in:
Dean Moldovan 2017-06-24 21:00:18 +02:00
parent 9d698f7fcc
commit cd2d3ad5df

View File

@ -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;
});
}