test_drop_upload.py: add comment explaining why we don't use FilePath.setContent. refs #1429

This commit is contained in:
david-sarah 2011-08-09 19:59:42 -07:00
parent 369e30b1df
commit f157b73367

View 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":