• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tomerfiliba / plumbum / 1051 / 9
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 31 Dec 2018 12:04AM UTC
Files 39
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Dec 2018 11:41PM UTC coverage: 81.04% (+0.05%) from 80.994%
PY3=3 PYV=Mac3

push

travis-ci

henryiii
Fix bug #395. (#434)

* Add a test demonstrating issue #395

* Fix bug #395

Even if the child process has exited, it may have written data that is
still in the pipe buffer. We need to make sure to drain it with one
final round of `select()`ing.

Note that this differs from the shell semantics of `| tee file.out`;
In a shell pipeline, the right-hand-side has no direct reference to
the left-hand-side, and so `tee` reads until it gets an `EOF` on the
pipe, normally caused by all write-side ends being closed. We can
demonstrate this with a pipeline that causes the write end to outlive
the left-hand child:

```
( sleep 500 & disown; echo hi ) | tee out.log
```

After the `hi` is printed, we can observe that the left-hand `bash` is
dead, but `tee` still has not returned:

```
$ pstree -p 7273
bash(7273)───tee(1790)
```

Killing the `sleep` makes the whole pipeline exit.

I chose to preserve the original `plumbum` semantics of "exit on child
exit" instead of the shell semantics, but wanted to call out the
difference.

* Fix a typo

1225 of 1753 branches covered (69.88%)

3787 of 4673 relevant lines covered (81.04%)

0.81 hits per line

Source Files on job 1051.9 (PY3=3 PYV=Mac3)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 1023
  • Travis Job 1051.9
  • 14718bfc on github
  • Prev Job for PY3=3 PYV=Mac3 on master (#1050.9)
  • Next Job for PY3=3 PYV=Mac3 on master (#1052.9)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc