1. Tom Limoncelli
  2. pyyaml

Commits

Kirill Simonov  committed 62b7959

Fixed tests on the Windows platform.

  • Participants
  • Parent commits cfb8595
  • Branches default

Comments (0)

Files changed (2)

File tests/lib/test_input_output.py

View file
  • Ignore whitespace
 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

View file
  • Ignore whitespace
 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)