]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Switch test_object_create_unreadable to use '\n' instead of '\a'.
authorTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 11 Aug 2011 16:30:26 +0000 (09:30 -0700)
committerTommi Virtanen <tommi.virtanen@dreamhost.com>
Thu, 11 Aug 2011 16:30:26 +0000 (09:30 -0700)
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.

s3tests/functional/test_s3.py

index 6cce6405a75181db0e59a2b597cff537c691cba8..15d2ed845955764bdb0bf1bc790efa5098837bff 100644 (file)
@@ -537,9 +537,10 @@ def test_object_read_notexist():
 
 # 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.
+# http://code.google.com/p/boto/issues/detail?id=501
 def test_object_create_unreadable():
     bucket = get_new_bucket()
-    key = bucket.new_key('\x07')
+    key = bucket.new_key('\x0a')
     key.set_contents_from_string('bar')