summaryrefslogtreecommitdiff
path: root/test/test_misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_misc.py')
-rw-r--r--test/test_misc.py3
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)