From 99ca9aaec0cf8f50f2ad763cd8f9bb297cb1c27f Mon Sep 17 00:00:00 2001 From: Nick Bridge Date: Wed, 18 Nov 2020 13:33:46 -0600 Subject: [PATCH] CI: more formatting fixes. Removed unecessary comment --- include/pybind11/iostream.h | 2 -- tests/test_iostream.cpp | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/pybind11/iostream.h b/include/pybind11/iostream.h index 70d022fdb1..816e38f10b 100644 --- a/include/pybind11/iostream.h +++ b/include/pybind11/iostream.h @@ -48,8 +48,6 @@ class pythonbuf : public std::streambuf { gil_scoped_acquire tmp; // This subtraction cannot be negative, so dropping the sign. - // This invokes python and therefore should be included in the - // GIL str line(pbase(), static_cast(pptr() - pbase())); pywrite(line); diff --git a/tests/test_iostream.cpp b/tests/test_iostream.cpp index 6df73dcb23..f76f30588d 100644 --- a/tests/test_iostream.cpp +++ b/tests/test_iostream.cpp @@ -10,9 +10,9 @@ #include #include "pybind11_tests.h" +#include #include #include -#include void noisy_function(std::string msg, bool flush) { @@ -109,10 +109,7 @@ TEST_SUBMODULE(iostream, m) { py::class_(m, "TestThread") .def(py::init<>()) - .def("stop", &TestThread::stop) - .def("join", &TestThread::join) - .def("sleep", &TestThread::sleep); }