(self)
| 1217 | ) |
| 1218 | |
| 1219 | def test_intermingling(self): |
| 1220 | with self.getcapture() as cap: |
| 1221 | os.write(1, b"1") |
| 1222 | sys.stdout.write(str(2)) |
| 1223 | sys.stdout.flush() |
| 1224 | os.write(1, b"3") |
| 1225 | os.write(2, b"a") |
| 1226 | sys.stderr.write("b") |
| 1227 | sys.stderr.flush() |
| 1228 | os.write(2, b"c") |
| 1229 | out, err = cap.readouterr() |
| 1230 | assert out == "123" |
| 1231 | assert err == "abc" |
| 1232 | |
| 1233 | def test_many(self, capfd): |
| 1234 | with lsof_check(): |
nothing calls this directly
no test coverage detected