Source

pyyaml / tests / lib3 / test_input_output.py

Diff from to

tests/lib3/test_input_output.py

 def test_file_output(unicode_filename, verbose=False):
     data = open(unicode_filename, 'rb').read().decode('utf-8')
     handle, filename = tempfile.mkstemp()
+    os.close(handle)
     try:
         stream = io.StringIO()
         yaml.dump(data, stream, allow_unicode=True)