Switch test_object_create_unreadable to use '\n' instead of '\a'.

This avoids a SAX/boto interaction bug that is not of much interest,
yet still seems "evil" enough that it fulfills the original intent
of the test.

Add a link to the relevant bug report.
This commit is contained in:
Tommi Virtanen 2011-08-11 09:30:26 -07:00
parent 48e078a758
commit ce3d448d64

View file

@ -537,9 +537,10 @@ def test_object_read_notexist():
# While the test itself passes, there's a SAX parser error during teardown. It # While the test itself passes, there's a SAX parser error during teardown. It
# seems to be a boto bug. It happens with both amazon and dho. # seems to be a boto bug. It happens with both amazon and dho.
# http://code.google.com/p/boto/issues/detail?id=501
def test_object_create_unreadable(): def test_object_create_unreadable():
bucket = get_new_bucket() bucket = get_new_bucket()
key = bucket.new_key('\x07') key = bucket.new_key('\x0a')
key.set_contents_from_string('bar') key.set_contents_from_string('bar')