diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 14:03:11 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 14:03:11 +0200 |
commit | 82e56142109837114c9abd1ae66deab22f5a1094 (patch) | |
tree | 9938d8db8d69b91f52ff8e046e37549ecd0367ca /Lib/test/test_subprocess.py | |
parent | f2089387c42582d18f9b8cf89ca1eba088bb4549 (diff) | |
parent | b6fbb7ededa76c40650568147a5499e15ab7af87 (diff) | |
download | cpython-82e56142109837114c9abd1ae66deab22f5a1094.tar.gz |
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 3d34859ed4..460876f410 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 |