diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2012-01-03 22:16:57 +0000 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2012-01-03 22:16:57 +0000 |
commit | 80a7b6c5e6a45e9c6bd6833ba27ec15d2829327c (patch) | |
tree | 48ebad4cb650ab75b2724bc38948eac33cbc54a3 | |
parent | 70e306ada930013e1652245cf346566968bd59d4 (diff) | |
download | pysendfile-80a7b6c5e6a45e9c6bd6833ba27ec15d2829327c.tar.gz |
FreeBSD test refactoring
-rw-r--r-- | test/test_sendfile.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_sendfile.py b/test/test_sendfile.py index efaf545..0052aaa 100644 --- a/test/test_sendfile.py +++ b/test/test_sendfile.py @@ -285,11 +285,11 @@ class TestSendfile(unittest.TestCase): fd_out.close() if sys.platform.startswith('freebsd'): - def test_send_whole_file(self): + def test_send_nbytes_0(self): # On Mac OS X and FreeBSD, a value of 0 for nbytes - # specifies to send until EOF is reached. - # OSX implementation is broken though. - sendfile_wrapper(self.sockno, self.fileno, 0, 0) + # is supposed to send the whole file in one shot. + # OSX implementation appears to be broken though. + sendfile.sendfile(self.sockno, self.fileno, 0, 0) self.client.close() self.server.wait() data = self.server.handler_instance.get_data() @@ -511,7 +511,7 @@ def test_main(): test_suite = unittest.TestSuite() test_suite.addTest(unittest.makeSuite(TestSendfile)) if has_large_file_support(): - test_suite.addTest(unittest.makeSuite(TestLargeFile)) # XXX + # test_suite.addTest(unittest.makeSuite(TestLargeFile)) # XXX pass else: atexit.register(warnings.warn, "couldn't run large file test because " |