mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-28 23:38:31 +01:00
Skip test relying on ordered dicts for 3.5 (#1752)
This commit is contained in:
parent
960c7a0c70
commit
bf06fa2c18
1 changed files with 2 additions and 2 deletions
|
@ -977,7 +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")
|
||||
@pytest.mark.skipif(sys.version_info < (3, 6), 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,
|
||||
|
@ -988,7 +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")
|
||||
@pytest.mark.skipif(sys.version_info < (3, 6), 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