diff options
author | cpopa <devnull@localhost> | 2013-09-06 09:43:40 +0300 |
---|---|---|
committer | cpopa <devnull@localhost> | 2013-09-06 09:43:40 +0300 |
commit | f628a570c3b99706012df53125ff6aa5fa2fde36 (patch) | |
tree | 89401828e526f86ba038157509038b8e76cc24c2 | |
parent | 7bb05cb3ae87f834c5a6864f38c20c4f544dcb8a (diff) | |
download | pylint-f628a570c3b99706012df53125ff6aa5fa2fde36.tar.gz |
Add comment regarding NamedTemporaryFile.
-rw-r--r-- | test/test_misc.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_misc.py b/test/test_misc.py index ff6815d..d2c03c0 100644 --- a/test/test_misc.py +++ b/test/test_misc.py @@ -27,6 +27,9 @@ from pylint.testutils import CheckerTestCase, Message @contextlib.contextmanager def create_file_backed_module(code): + # Can't use tempfile.NamedTemporaryFile here + # because on Windows the file must be closed before writing to it, + # see http://bugs.python.org/issue14243 fd, tmp = tempfile.mkstemp() os.write(fd, code) |