Skip test relying on ordered dicts for 3.5 (#1752)

This commit is contained in:
Bibo-Joshi 2020-02-06 11:28:27 +01:00 committed by GitHub
parent 960c7a0c70
commit bf06fa2c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):