Open source files in universal newlines mode.
diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py
index 183efb5..e51bc42 100644
--- a/Lib/test/test_compiler.py
+++ b/Lib/test/test_compiler.py
@@ -24,7 +24,7 @@
                 path = os.path.join(dir, basename)
                 if test.test_support.verbose:
                     print "compiling", path
-                f = open(path)
+                f = open(path, "U")
                 buf = f.read()
                 f.close()
                 if "badsyntax" in basename: