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

Unified Diff: Lib/test/test_ioctl.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 10 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_imp.py ('k') | Lib/test/test_io.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_ioctl.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/test/test_ioctl.py Mon Jul 25 09:47:18 2011 -0400
@@ -7,7 +7,7 @@
get_attribute(termios, 'TIOCGPGRP') #Can't run tests without this feature
try:
- tty = open("/dev/tty", "rb")
+ tty = open("/dev/tty", "r")
except IOError:
raise unittest.SkipTest("Unable to open /dev/tty")
else:
@@ -30,7 +30,7 @@
# If this process has been put into the background, TIOCGPGRP returns
# the session ID instead of the process group id.
ids = (os.getpgrp(), os.getsid(0))
- with open("/dev/tty", "rb") as tty:
+ with open("/dev/tty", "r") as tty:
r = fcntl.ioctl(tty, termios.TIOCGPGRP, " ")
rpgrp = struct.unpack("i", r)[0]
self.assertIn(rpgrp, ids)
@@ -47,7 +47,7 @@
self.assertEqual(len(buf) * intsize, nbytes) # sanity check
else:
buf.append(fill)
- with open("/dev/tty", "rb") as tty:
+ with open("/dev/tty", "r") as tty:
r = fcntl.ioctl(tty, termios.TIOCGPGRP, buf, 1)
rpgrp = buf[0]
self.assertEqual(r, 0)
« no previous file with comments | « Lib/test/test_imp.py ('k') | Lib/test/test_io.py » ('j') | no next file with comments »

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