Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unittest.makeSuite is deprecated in Python 3.11 and will be removed in Python 3.13 #39

Open
tirkarthi opened this issue Mar 14, 2022 · 0 comments

Comments

@tirkarthi
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant