Author rosslagerwall
Recipients anacrolix, giampaolo.rodola, loewis, pitrou, rosslagerwall
Date 2011-02-07.04:35:22
SpamBayes Score 1.81231e-10
Marked as misclassified No
Message-id <1297053322.85.0.778705419449.issue10882@psf.upfronthosting.co.za>
In-reply-to
Content
With no changes, I get:
======================================================================
FAIL: test_trailers (test.test_os.TestSendfile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/ross/py3k_sftest/Lib/test/test_os.py", line 1531, in test_trailers
    self.assertEqual(data, "abcde12345")
AssertionError: b'abcde12345' != 'abcde12345'

After changing, the tests work perfectly. Perhaps its the FreeBSD version? Here's the output from uname:
FreeBSD fbds 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64

Maybe its a bug on that platform, you could try building a sendfile program in C with trailer data. Or try a simple test in the interpreter like the one in msg127326 but with added trailer data.
History
Date User Action Args
2011-02-07 04:35:22rosslagerwallsetrecipients: + rosslagerwall, loewis, pitrou, giampaolo.rodola, anacrolix
2011-02-07 04:35:22rosslagerwallsetmessageid: <1297053322.85.0.778705419449.issue10882@psf.upfronthosting.co.za>
2011-02-07 04:35:22rosslagerwalllinkissue10882 messages
2011-02-07 04:35:22rosslagerwallcreate