﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
18744	NamedTemporaryFile opened in read mode cannot be written to by another process on Windows	ty@…	Kevin Christopher Henry	"The documentation for NamedTemporaryFile says that it exists so that on Windows so other processes can open the file, which is not possible using Python's implementation of NamedTemporaryFile because of the O_TEMPORARY flag that is passed by default.

However, if the temporary file is opened in read mode (r+), another process cannot write to the file, unless the temp file is closed before the outside process is called. This comes up with django_compressor when trying to use lessc (either https://github.com/duncansmart/less.js-windows or http://www.dotlesscss.org/).

I've attached a test that demonstrates the problem. On *nix, this test should pass."	Cleanup/optimization	closed	File uploads/storage	dev	Normal	fixed		k@…	Accepted	1	0	0	0	0	0
