]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_drop_upload.py: add comment explaining why we don't use FilePath.setContent...
authordavid-sarah <david-sarah@jacaranda.org>
Wed, 10 Aug 2011 02:59:42 +0000 (19:59 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Wed, 10 Aug 2011 02:59:42 +0000 (19:59 -0700)
src/allmydata/test/test_drop_upload.py

index fa697877faf5f32f92d5597ddf7f1ad8fdec1bf3..ea21ff02914cdee0460263b9e0b64a9f24017834 100644 (file)
@@ -122,6 +122,8 @@ class DropUploadTestMixin(GridTestMixin, ShouldFailMixin, ReallyEqualMixin):
         else:
             path = filepath.FilePath(path_u.encode(get_filesystem_encoding()))
 
+        # We don't use FilePath.setContent() here because it creates a temporary file that
+        # is renamed into place, which causes events that the test is not expecting.
         f = open(path.path, "wb")
         try:
             if temporary and sys.platform != "win32":