Skip to content

Commit

Permalink
fix: use frappe13 in py 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
saxenabhishek committed Jan 31, 2022
1 parent dd4cda3 commit 5b1b84b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bench/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@
from bench.utils.system import init
from bench.bench import Bench

if sys.version_info.major == 2:
FRAPPE_BRANCH = "version-12"
else:
FRAPPE_BRANCH = "develop"
PYTHON_VER = sys.version_info

FRAPPE_BRANCH = "version-12"
if PYTHON_VER.major == 3:
if PYTHON_VER.minor in [6, 7]:
FRAPPE_BRANCH = "version-13"
else:
FRAPPE_BRANCH = "develop"

class TestBenchBase(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit 5b1b84b

Please sign in to comment.