Fixed tests on the Windows platform.
diff --git a/tests/lib/test_input_output.py b/tests/lib/test_input_output.py
index 131262a..9ccc8fc 100644
--- a/tests/lib/test_input_output.py
+++ b/tests/lib/test_input_output.py
@@ -98,6 +98,7 @@
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)
diff --git a/tests/lib3/test_input_output.py b/tests/lib3/test_input_output.py
index 62b20c7..70a945a 100644
--- a/tests/lib3/test_input_output.py
+++ b/tests/lib3/test_input_output.py
@@ -97,6 +97,7 @@
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)