diff --git a/tests/test_document.cpp b/tests/test_document.cpp
index c03159d02a8aacc910baafedff7a884f0e50dff7..7adc2a1d507faef69d544e7335fbd56d0c0ac3be 100644
--- a/tests/test_document.cpp
+++ b/tests/test_document.cpp
@@ -273,10 +273,6 @@ TEST(document_load_file_error)
 
 	CHECK(doc.load_file("filedoesnotexist").status == status_file_not_found);
 
-#ifdef _WIN32
-	CHECK(doc.load_file("con").status == status_io_error);
-#endif
-
 	test_runner::_memory_fail_threshold = 1;
 	CHECK(doc.load_file("tests/data/small.xml").status == status_out_of_memory);
 }