Skip to content

Commit

Permalink
Turn off distutils messages in the test suite.
Browse files Browse the repository at this point in the history
They're just distractions.  Also, I think they cause failures when I use
the original setuptools instead of distribute.
  • Loading branch information
mgedmin committed Jun 11, 2012
1 parent b7abc2d commit a62a3c5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions z3c/checkversions/buildout.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ We can now check the new highest versions:
{'zope.interface': '3.4.0', 'zope.component': '3.0.0'}
>>> checker.check()
# Checking buildout file ...
Reading file:///.../zope.interface/
zope.interface=3.6.1
Reading file:///.../zope.component/
zope.component=3.9.4

We can check only the minor versions:
Expand All @@ -53,20 +51,16 @@ We can provide a different index url:
>>> checker = buildout.Checker(filename=buildout_path, index_url=testindex2)
>>> checker.check()
# Checking buildout file ...
Reading file:///.../zope.interface/
zope.interface=3.6.2
Reading file:///.../zope.component/
zope.component=3.9.3

The verbose mode gives the current and previous versions

>>> checker = buildout.Checker(filename=buildout_path, verbose=True)
>>> checker.check(level=2)
# Checking buildout file ...
Reading file:///.../zope.interface/
# was: 3.4.0
zope.interface=3.4.1
Reading file:///.../zope.component/
# was: 3.0.0
zope.component=3.0.3

Expand All @@ -89,10 +83,8 @@ The old comments are removed:
>>> checker = buildout.Checker(filename=buildout_path, verbose=True)
>>> checker.check()
# Checking buildout file ...
Reading file:///.../zope.interface/
# was: 3.4.1
zope.interface=3.6.1
Reading file:///.../zope.component/
# was: 3.0.3
zope.component=3.9.4

Expand All @@ -111,10 +103,8 @@ This file may come from a buildbot remembering failures.
... blacklist=blacklist_path)
>>> checker.check()
# Checking buildout file ...
Reading file:///.../zope.interface/
# was: 3.4.1
zope.interface=3.6.1
Reading file:///.../zope.component/
# was: 3.0.3
zope.component=3.9.2

Expand All @@ -127,7 +117,6 @@ test a just single new package against a set of other packages.
... blacklist=blacklist_path)
>>> checker.check()
# Checking buildout file ...
Reading file:///.../zope.interface/
# was: 3.4.1
zope.interface=3.6.1
zope.component=3.0.3
Expand Down
2 changes: 1 addition & 1 deletion z3c/checkversions/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import distutils.log

def setUp(test):
test._old_log_level = distutils.log.set_threshold(distutils.log.INFO)
test._old_log_level = distutils.log.set_threshold(distutils.log.ERROR)

def tearDown(test):
distutils.log.set_threshold(test._old_log_level)
Expand Down

0 comments on commit a62a3c5

Please sign in to comment.