diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-10-13 08:59:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-13 08:59:31 (GMT) |
commit | 140a7d1f3579e778656a6b6bfad72489e9870a4d (patch) | |
tree | e9f37d4c49944e9c00e83baaaff6dd785356b29e /Lib/test/test_os.py | |
parent | 46113e0cf32748f66cf64cd633984d143b433cd1 (diff) | |
download | cpython-140a7d1f3579e778656a6b6bfad72489e9870a4d.zip cpython-140a7d1f3579e778656a6b6bfad72489e9870a4d.tar.gz cpython-140a7d1f3579e778656a6b6bfad72489e9870a4d.tar.bz2 |
bpo-38378: Rename parameters "out" and "in" of os.sendfile(). (GH-16742)
They conflicted with keyword "in".
Also rename positional-only parameters of private os._fcopyfile()
for consistency.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 4a076e3..d2bd9c2 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -3110,11 +3110,12 @@ class TestSendfile(unittest.TestCase): def test_keywords(self): # Keyword arguments should be supported - os.sendfile(out=self.sockno, offset=0, count=4096, - **{'in': self.fileno}) + os.sendfile(out_fd=self.sockno, in_fd=self.fileno, + offset=0, count=4096) if self.SUPPORT_HEADERS_TRAILERS: - os.sendfile(self.sockno, self.fileno, offset=0, count=4096, - headers=(), trailers=(), flags=0) + os.sendfile(out_fd=self.sockno, in_fd=self.fileno, + offset=0, count=4096, + headers=(), trailers=(), flags=0) # --- headers / trailers tests |