Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Sign In

sirosen / SALVE
100%
stable: 100%

DEFAULT BRANCH: stable
Build:
LAST BUILD BRANCH: wip/refactor/2-3-0-cleanup
Repo Added 24 Jul 2014 04:56AM UTC
Total Files 71
# Builds 228 Last
Badge
Logging python vers 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

LAST BUILD ON BRANCH bugfix/logging-python-vers
branch: bugfix/logging-python-vers
CHANGE BRANCH
x
Reset
  • bugfix/logging-python-vers
  • documentation/readme-2.2.0
  • dev
  • stable
  • 2.2.0
  • wip/feature/py2-6-compat
  • wip/feature/block-primary-attr
  • wip/feature/verify-pre-deploy
  • wip/refactor/remove-base-modules
  • wip/feature/abstract-filesys
  • feature/abstract-filesys
  • wip/documentation/cleanup-metadata
  • wip/feature/py35
  • wip/feature/pypy
  • wip/feature/pip-package
  • wip/documentation/cli-help-2.3.0
  • wip/refactor/2-3-0-cleanup
  • 2.3.0
  • wip/bugfix/setuptools-fixes
  • wip/documentation/readme-rst
  • wip/documentation/readme-fixup
  • wip/feature/mock-fs-verify
  • wip/feature/improved-relative-paths
  • testing/travis-nosudo
  • wip/refactor/clean-initfiles
  • wip/bugfix/logging-python-vers
  • refactor/flake8
  • refactor/codeclimate
  • 2.3.1
  • 2.4.1
  • wip/refactor/codeclimate
  • bugfix/logging/cli-vs-configfile
  • wip/refactor/action-prettynames
  • wip/refactor/general-cleanup
  • wip/refactor/global-state

21 Oct 2015 - 3:30 coverage remained the same at 100.0%
191

push

travis-ci

Cdc8ae0deeff355ccfd6dab8a9ed8623?size=18&default=identiconsirosen
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"

1386 of 1386 relevant lines covered (100.0%)

6.99 hits per line

Relevant lines Covered
1386 RELEVANT LINES 1386 COVERED LINES
Build:
6.99 HITS PER LINE
Source Files on bugfix/logging-python-vers
  • List 71
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent Builds

Builds Branch Coverage Commit Committer Type Time Via
191 bugfix/logging-python-vers
100.0
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, ... Cdc8ae0deeff355ccfd6dab8a9ed8623?size=18&default=identiconsirosen push 21 Oct 2015 03:32AM UTC travis-ci
172 bugfix/logging-python-vers
100.0
Fix NullHandler tests on 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 Attri... Cdc8ae0deeff355ccfd6dab8a9ed8623?size=18&default=identiconsirosen push 20 Oct 2015 05:14AM UTC travis-ci
171 bugfix/logging-python-vers
100.0
Special case for Python 2.6 StreamHandler 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 Stre... Cdc8ae0deeff355ccfd6dab8a9ed8623?size=18&default=identiconsirosen push 19 Oct 2015 04:54AM UTC travis-ci
170 bugfix/logging-python-vers
100.0
Remove 'No handlers' line from log tests In python2, an attempt to log when there are no handlers attached to a logger makes noise on stderr. However, in python3, this is a silent no-op, and as a result the check to see that the "No handlers coul... Cdc8ae0deeff355ccfd6dab8a9ed8623?size=18&default=identiconsirosen push 19 Oct 2015 04:43AM UTC travis-ci
See All Builds (228)
Notice exc

Badge your Repo: SALVE

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Logging python vers
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

Loading Refresh
  • Repo on GitHub
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
BLOG · TWITTER · Legal & Privacy · Supported CI Services · What's a CI service? · Automated Testing

© 2021 Coveralls, Inc