Skip to content

Commit

Permalink
Fixes LP #957401 - Remove stray output on stderr
Browse files Browse the repository at this point in the history
* Removes a stray print statement that was in the
  API functional test
* Does a NOOP log_message method to the request
  handler used in glance.tests.functional.store_utils
  to prevent output in test runs frmo the HTTP server

Change-Id: I663593d9d666d35d3c2c1655598ef68304726fd4
  • Loading branch information
jaypipes committed Mar 19, 2012
1 parent 085f567 commit c5cb723
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions glance/tests/functional/store_utils.py
Expand Up @@ -62,6 +62,12 @@ def do_GET(self):
self.send_error(404, 'File Not Found: %s' % self.path)
return

def log_message(self, format, *args):
"""
Simple override to prevent writing crap to stderr...
"""
pass


def setup_http(test):
server_class = BaseHTTPServer.HTTPServer
Expand Down
1 change: 0 additions & 1 deletion glance/tests/functional/test_api.py
Expand Up @@ -1039,7 +1039,6 @@ def test_limited_images(self):
self.assertEqual(response.status, 200)
images = json.loads(content)['images']
self.assertEqual(len(images), 3)
print images

# 3. GET /images with limit of 2
# Verify only two images were returned
Expand Down

0 comments on commit c5cb723

Please sign in to comment.