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

sirosen / SALVE
100%
stable: 100%

Build:
Build:
LAST BUILD BRANCH: wip/refactor/2-3-0-cleanup
DEFAULT BRANCH: stable
Repo Added 24 Jul 2014 04:56AM CUT
Files 336
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

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

pending completion
191

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"

1386 of 1386 relevant lines covered (100.0%)

6.99 hits per line

Relevant lines Covered
Build:
Build:
1386 RELEVANT LINES 1386 COVERED LINES
6.99 HITS PER LINE
Source Files on bugfix/logging-python-vers
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line
No data available in table
Showing 0 to 0 of 0 entries
  • Previous
  • Next

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
191 bugfix/logging-python-vers 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, ... push 21 Oct 2015 03:32AM CUT sirosen travis-ci pending completion  
172 bugfix/logging-python-vers 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... push 20 Oct 2015 05:14AM CUT sirosen travis-ci pending completion  
171 bugfix/logging-python-vers 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... push 19 Oct 2015 04:54AM CUT sirosen travis-ci pending completion  
170 bugfix/logging-python-vers 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... push 19 Oct 2015 04:43AM CUT sirosen travis-ci pending completion  
See All Builds (228)
  • Repo on GitHub
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