skip test_json on TestDictPersistence on py3.5 (#1748)

This commit is contained in:
Bibo-Joshi 2020-02-02 23:10:48 +01:00 committed by GitHub
parent 90eeb40ae8
commit f97ac90af7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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