Tests: added to CustomClass immutable object that would trigger a setattr() exception

This commit is contained in:
zeroone2numeral2 2021-06-17 12:22:52 +02:00
parent 6c61c4bac4
commit 1c2583041a

View file

@ -18,6 +18,7 @@
# along with this program. If not, see [http://www.gnu.org/licenses/].
import gzip
import signal
import uuid
from threading import Lock
from telegram.ext.callbackdatacache import CallbackDataCache
@ -582,6 +583,7 @@ class TestBasePersistence:
self.frozenset_ = frozenset(self.list_)
self.dict_ = {item: item for item in self.list_}
self.defaultdict_ = defaultdict(dict, self.dict_)
self.uuid_ = uuid.uuid4()
@staticmethod
def replace_bot():