mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
Tests: added to CustomClass immutable object that would trigger a setattr() exception
This commit is contained in:
parent
6c61c4bac4
commit
1c2583041a
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
||||||
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
||||||
import gzip
|
import gzip
|
||||||
import signal
|
import signal
|
||||||
|
import uuid
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
|
|
||||||
from telegram.ext.callbackdatacache import CallbackDataCache
|
from telegram.ext.callbackdatacache import CallbackDataCache
|
||||||
|
@ -582,6 +583,7 @@ class TestBasePersistence:
|
||||||
self.frozenset_ = frozenset(self.list_)
|
self.frozenset_ = frozenset(self.list_)
|
||||||
self.dict_ = {item: item for item in self.list_}
|
self.dict_ = {item: item for item in self.list_}
|
||||||
self.defaultdict_ = defaultdict(dict, self.dict_)
|
self.defaultdict_ = defaultdict(dict, self.dict_)
|
||||||
|
self.uuid_ = uuid.uuid4()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def replace_bot():
|
def replace_bot():
|
||||||
|
|
Loading…
Reference in a new issue