os.sendfile(headers=None, trailers=None) arguments are not actually accepted

Needs to be tested on a BSD.
This commit is contained in:
Martin Panter 2015-09-09 05:29:24 +00:00
parent 78d915aa3e
commit 9499413508
3 changed files with 5 additions and 5 deletions

View file

@ -2170,7 +2170,7 @@ class TestSendfile(unittest.TestCase):
**{'in': self.fileno})
if self.SUPPORT_HEADERS_TRAILERS:
os.sendfile(self.sockno, self.fileno, offset=0, count=4096,
headers=None, trailers=None, flags=0)
headers=(), trailers=(), flags=0)
# --- headers / trailers tests