Fix test_novice.test_update_on_save failure on Windows

On Windows, tempfile.NamedTemporaryFile() can not be opened a second time. See <http://docs.python.org/2/library/tempfile.html#tempfile.NamedTemporaryFile>
Merge pull request #909 from cgohlke/patch-3

Fix test_novice.test_update_on_save failure on Windows