mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-29 15:49:02 +01:00
skip test_json on TestDictPersistence on py3.5 (#1748)
This commit is contained in:
parent
90eeb40ae8
commit
f97ac90af7
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
# You should have received a copy of the GNU Lesser Public License
|
||||
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
||||
import signal
|
||||
import sys
|
||||
|
||||
from telegram.utils.helpers import encode_conversations_to_json
|
||||
|
||||
|
@ -976,6 +977,7 @@ class TestDictPersistence(object):
|
|||
assert dict_persistence.bot_data == bot_data
|
||||
assert dict_persistence.conversations == conversations
|
||||
|
||||
@pytest.mark.skipif(sys.version_info == (3, 5), reason="dicts are not ordered in py<=3.5")
|
||||
def test_json_outputs(self, user_data_json, chat_data_json, bot_data_json, conversations_json):
|
||||
dict_persistence = DictPersistence(user_data_json=user_data_json,
|
||||
chat_data_json=chat_data_json,
|
||||
|
@ -986,6 +988,7 @@ class TestDictPersistence(object):
|
|||
assert dict_persistence.bot_data_json == bot_data_json
|
||||
assert dict_persistence.conversations_json == conversations_json
|
||||
|
||||
@pytest.mark.skipif(sys.version_info == (3, 5), reason="dicts are not ordered in py<=3.5")
|
||||
def test_json_changes(self, user_data, user_data_json, chat_data, chat_data_json,
|
||||
bot_data, bot_data_json,
|
||||
conversations, conversations_json):
|
||||
|
|
Loading…
Reference in a new issue