[New-bugs-announce] [issue1345] Fix for test_netrc on Windows

Christian Heimes report at bugs.python.org
Sat Oct 27 23:45:48 CEST 2007


New submission from Christian Heimes:

Index: Lib/test/test_netrc.py
===================================================================
--- Lib/test/test_netrc.py      (revision 58695)
+++ Lib/test/test_netrc.py      (working copy)
@@ -25,7 +25,7 @@
         mode = 'w'
         if sys.platform not in ['cygwin']:
             mode += 't'
-        fp = open(temp_filename, mode)
+        fp = open(temp_filename, mode, newline='')
         fp.write(TEST_NETRC)
         fp.close()

----------
components: Library (Lib)
messages: 56863
nosy: tiran
severity: normal
status: open
title: Fix for test_netrc on Windows
type: behavior
versions: Python 3.0

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1345>
__________________________________


More information about the New-bugs-announce mailing list