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

sirosen / SALVE / 190
100%
stable: 100%

Build:
Build:
LAST BUILD BRANCH: wip/refactor/2-3-0-cleanup
DEFAULT BRANCH: stable
Ran 21 Oct 2015 03:32AM UTC
Jobs 7
Files 71
Run time 1min
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

pending completion
190

push

travis-ci

sirosen
Special casing for Python 2.6 logging

The Python2.6 StreamHandler initializer has a different signature from the one
used in Python2.7 and Python3.x
Namely, rather than using a keyword arg, it uses an optional positional
argument for the Stream, and it defaults when the argument is omitted, not when
it is `None`. Although I'm unsure of the behavior of the logger on 2.6 when the
argument is supplied as None, I'd expect it to break. Per the documentation,
this is the only correct/safe way to set the stream for Python 2.6

In Python 2.6, the NullHandler was not part of the standard logging library. As
a result, we must wrap references to the NullHandler in salve.log.handler and
explicitly define a NullHandler when we get an AttributeError doing so (which
indicates that the logging module doesn't have an attribute named
'NullHanlder').

Fixes a typo of "'DEBUG'" instead of "logging.DEBUG"

9 of 9 new or added lines in 3 files covered. (100.0%)

1386 of 1386 relevant lines covered (100.0%)

6.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 190.1 21 Oct 2015 03:32AM UTC 0
99.93
Travis Job 190.1
2 190.2 21 Oct 2015 03:32AM UTC 0
100.0
Travis Job 190.2
3 190.3 21 Oct 2015 03:32AM UTC 0
99.71
Travis Job 190.3
4 190.4 21 Oct 2015 03:32AM UTC 0
99.71
Travis Job 190.4
5 190.5 21 Oct 2015 03:32AM UTC 0
99.71
Travis Job 190.5
6 190.6 21 Oct 2015 03:33AM UTC 0
100.0
Travis Job 190.6
7 190.7 21 Oct 2015 03:33AM UTC 0
99.71
Travis Job 190.7
Source Files on build 190
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #190
  • 17f10e11 on github
  • Prev Build on wip/bugfix/logging-python-vers (#189)
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

© 2025 Coveralls, Inc