workhorsy / py-cpuinfo

A module for getting CPU info with pure Python
MIT License
312 stars 59 forks source link

Replace Python 3.11 deprecated unittest.makeSuite #171

Closed tirkarthi closed 2 years ago

tirkarthi commented 2 years ago

Ref : https://github.com/python/cpython/pull/28382

python test_suite.py    
/root/checked_repos_clone_900_1000/py-cpuinfo/test_suite.py:132: DeprecationWarning: unittest.makeSuite() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromTestCase() instead.
  suite.addTest(unittest.makeSuite(test))
.............................................................s..........................................................................................
----------------------------------------------------------------------
Ran 152 tests in 19.233s

OK (skipped=1)

https://github.com/workhorsy/py-cpuinfo/blob/4b98eb23141ab4131b88966227d42c6ab64c86f0/test_suite.py#L132

workhorsy commented 2 years ago

Thanks