summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-05-02 04:43:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-05-02 04:43:14 (GMT)
commitc4edb0ec81f437b84a4011e3a375892d48d0bd6c (patch)
treedf542d1d9c5d89d5555d7cda6026628f2139f05f /Lib/test/test_subprocess.py
parent4bbf66e852e2e812b4ef0fa774ff8614c96a0b82 (diff)
downloadcpython-c4edb0ec81f437b84a4011e3a375892d48d0bd6c.zip
cpython-c4edb0ec81f437b84a4011e3a375892d48d0bd6c.tar.gz
cpython-c4edb0ec81f437b84a4011e3a375892d48d0bd6c.tar.bz2
SF #1479181: split open() and file() from being aliases for each other.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index c351ee9..88a4baa 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -347,7 +347,7 @@ class ProcessTestCase(unittest.TestCase):
stdout=subprocess.PIPE,
universal_newlines=1)
stdout = p.stdout.read()
- if hasattr(open, 'newlines'):
+ if hasattr(p.stdout, 'newlines'):
# Interpreter with universal newline support
self.assertEqual(stdout,
"line1\nline2\nline3\nline4\nline5\nline6")
@@ -374,7 +374,7 @@ class ProcessTestCase(unittest.TestCase):
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
universal_newlines=1)
(stdout, stderr) = p.communicate()
- if hasattr(open, 'newlines'):
+ if hasattr(stdout, 'newlines'):
# Interpreter with universal newline support
self.assertEqual(stdout,
"line1\nline2\nline3\nline4\nline5\nline6")