Skip to content

Commit

Permalink
CI: more formatting fixes. Removed unecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nbridge-jump committed Nov 18, 2020
1 parent d22c20f commit 99ca9aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions include/pybind11/iostream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t>(pptr() - pbase()));

pywrite(line);
Expand Down
5 changes: 1 addition & 4 deletions tests/test_iostream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

#include <pybind11/iostream.h>
#include "pybind11_tests.h"
#include <atomic>
#include <iostream>
#include <thread>
#include <atomic>


void noisy_function(std::string msg, bool flush) {
Expand Down Expand Up @@ -109,10 +109,7 @@ TEST_SUBMODULE(iostream, m) {

py::class_<TestThread>(m, "TestThread")
.def(py::init<>())

.def("stop", &TestThread::stop)

.def("join", &TestThread::join)

.def("sleep", &TestThread::sleep);
}

0 comments on commit 99ca9aa

Please sign in to comment.