diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index ba6f94d2ec7..3a8b9d31445 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -117,7 +117,7 @@ def create(self): Make sure to call self.cleanup() to undo anything done by this method. """ - FILE = open(self.file_path, 'wU') + FILE = open(self.file_path, 'w') try: print>>FILE, "#import @bad module name" print>>FILE, "\n"