summaryrefslogtreecommitdiff
path: root/morphlib/remoteartifactcache_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-12-18 15:23:16 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-12-18 15:23:16 +0000
commitf352c4e7804f64a29670c23e50cff3c56a902496 (patch)
treea4ba65e01433664803a42cc6fc06bd6ffcd734a9 /morphlib/remoteartifactcache_tests.py
parentc853e4aa39c978054c037d1e7061e939427d495c (diff)
downloadmorph-f352c4e7804f64a29670c23e50cff3c56a902496.tar.gz
Silence log messages during unit tests
Diffstat (limited to 'morphlib/remoteartifactcache_tests.py')
-rw-r--r--morphlib/remoteartifactcache_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/remoteartifactcache_tests.py b/morphlib/remoteartifactcache_tests.py
index a4ec9370..431731b9 100644
--- a/morphlib/remoteartifactcache_tests.py
+++ b/morphlib/remoteartifactcache_tests.py
@@ -123,7 +123,8 @@ class RemoteArtifactCacheTests(unittest.TestCase):
def test_fails_to_get_a_non_existent_artifact(self):
self.assertRaises(morphlib.remoteartifactcache.GetError,
- self.cache.get, self.doc_artifact)
+ self.cache.get, self.doc_artifact,
+ log=lambda *args: None)
def test_get_existing_artifact_metadata(self):
handle = self.cache.get_artifact_metadata(
@@ -137,7 +138,8 @@ class RemoteArtifactCacheTests(unittest.TestCase):
morphlib.remoteartifactcache.GetArtifactMetadataError,
self.cache.get_artifact_metadata,
self.runtime_artifact,
- 'non-existent-meta')
+ 'non-existent-meta',
+ log=lambda *args: None)
def test_get_existing_source_metadata(self):
handle = self.cache.get_source_metadata(