Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:

The use case of setUpClass and tearDownClass is to run once during class setup 
and teardown where a class variable might be mutated. It's not a strict 
requirement [0] but rather maybe a common use case. There is at least one test 
case where setUpClass is used with @staticmethod at [1]

[0] 
https://github.com/python/cpython/blob/5909ad1217aad200c69ffa794fcab285bacb609e/Lib/unittest/suite.py#L159
[1] 
https://github.com/python/cpython/blob/5909ad1217aad200c69ffa794fcab285bacb609e/Lib/test/test_dbm_gnu.py#L12

----------
nosy: +xtreak

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36569>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to