Add python3 compatibility variable

This commit is contained in:
osamacis 2022-10-21 15:58:20 +05:30
parent c687c232b8
commit 1b9ff22abb
No known key found for this signature in database
GPG Key ID: 15F978BEFADAB9E1
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ from kivy.uix.screenmanager import Screen
from pybitmessage import state
if os.environ.get('INSTALL_TESTS', False):
if os.environ.get('INSTALL_TESTS', False) and not state.backend_py3_compatible:
from pybitmessage.mock import kivy_main
stats = kivy_main.network.stats
objectracker = kivy_main.network.objectracker

View File

@ -69,3 +69,5 @@ ackdataForWhichImWatching = {}
thisapp = None
"""Singleton instance"""
backend_py3_compatible = False