diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 11:58:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 11:58:23 (GMT) |
commit | 85c3033670d493d17e633261793e83226a6a0f61 (patch) | |
tree | 322c4f4c779fd214926ab7bbdf04a87c46747b00 /Lib/test/test_subprocess.py | |
parent | a25c542c476b84b30a7172d5b4f7e2c82330f6f4 (diff) | |
download | cpython-85c3033670d493d17e633261793e83226a6a0f61.zip cpython-85c3033670d493d17e633261793e83226a6a0f61.tar.gz cpython-85c3033670d493d17e633261793e83226a6a0f61.tar.bz2 |
Use os.devnull instead of hardcoded '/dev/null'.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r-- | Lib/test/test_subprocess.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 5381115..08af71f 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -1922,7 +1922,7 @@ class POSIXProcessTestCase(BaseTestCase): open_fds = set(fds) # add a bunch more fds for _ in range(9): - fd = os.open("/dev/null", os.O_RDONLY) + fd = os.open(os.devnull, os.O_RDONLY) self.addCleanup(os.close, fd) open_fds.add(fd) @@ -1984,7 +1984,7 @@ class POSIXProcessTestCase(BaseTestCase): open_fds = set() # Add a bunch more fds to pass down. for _ in range(40): - fd = os.open("/dev/null", os.O_RDONLY) + fd = os.open(os.devnull, os.O_RDONLY) open_fds.add(fd) # Leave a two pairs of low ones available for use by the |