Open
Description
Ref : python/cpython#28382 . Below is a run using Python 3.11
python -Wall test/test_sendfile.py
/usr/lib/python3.11/asynchat.py:48: DeprecationWarning: The asyncore module is deprecated. The recommended replacement is asyncio
import asyncore
/root/checked_repos_clone_2600_2700/pysendfile/test/test_sendfile.py:35: DeprecationWarning: The asynchat module is deprecated. The recommended replacement is asyncio
import asynchat
/root/checked_repos_clone_2600_2700/pysendfile/test/test_sendfile.py:560: DeprecationWarning: unittest.makeSuite() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromTestCase() instead.
test_suite.addTest(unittest.makeSuite(TestSendfile))
/root/checked_repos_clone_2600_2700/pysendfile/test/test_sendfile.py:562: DeprecationWarning: unittest.makeSuite() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromTestCase() instead.
test_suite.addTest(unittest.makeSuite(TestLargeFile))
test_empty_file (__main__.TestSendfile) ... ok
test_invalid_offset (__main__.TestSendfile) ... ok
test_non_socket (__main__.TestSendfile) ... ok
test_offset_none (__main__.TestSendfile) ... ok
test_offset_overflow (__main__.TestSendfile) ... ok
test_send_from_certain_offset (__main__.TestSendfile) ... ok
test_send_whole_file (__main__.TestSendfile) ... ok
test_small_file (__main__.TestSendfile) ... ok
test_small_file_and_offset_overflow (__main__.TestSendfile) ... ok
test_big_file (__main__.TestLargeFile) ...
creating file:
88%
starting transfer:
99%
ok
----------------------------------------------------------------------
Ran 10 tests in 11.153s
OK
Metadata
Metadata
Assignees
Labels
No labels