From f157b733676b33f578cd12020b1b63a825fa0ef4 Mon Sep 17 00:00:00 2001 From: david-sarah <david-sarah@jacaranda.org> Date: Tue, 9 Aug 2011 19:59:42 -0700 Subject: [PATCH] test_drop_upload.py: add comment explaining why we don't use FilePath.setContent. refs #1429 --- src/allmydata/test/test_drop_upload.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index fa697877..ea21ff02 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -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": -- 2.45.2