Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Unified Diff: Lib/test/test_fcntl.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_faulthandler.py ('k') | Lib/test/test_ftplib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_fcntl.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_fcntl.py Mon Jul 25 09:47:18 2011 -0400
@@ -62,7 +62,7 @@
def test_fcntl_fileno(self):
# the example from the library docs
- self.f = open(TESTFN, 'wb')
+ self.f = open(TESTFN, 'w')
rv = fcntl.fcntl(self.f.fileno(), fcntl.F_SETFL, os.O_NONBLOCK)
if verbose:
print('Status from fcntl with O_NONBLOCK: ', rv)
@@ -74,7 +74,7 @@
def test_fcntl_file_descriptor(self):
# again, but pass the file rather than numeric descriptor
- self.f = open(TESTFN, 'wb')
+ self.f = open(TESTFN, 'w')
rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
if sys.platform not in ['os2emx']:
rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
« no previous file with comments | « Lib/test/test_faulthandler.py ('k') | Lib/test/test_ftplib.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+