Commits

Kirill Simonov  committed 62b7959

Fixed tests on the Windows platform.

  • Participants
  • Parent commits cfb8595

Comments (0)

Files changed (2)

File tests/lib/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 = StringIO.StringIO()
         yaml.dump(data, stream, allow_unicode=True)

File 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)