From d67345f737c973a30e3d1a1486068b8fb7c1a3e9 Mon Sep 17 00:00:00 2001 From: Robert Shuford Date: Fri, 3 Nov 2023 01:43:41 -0400 Subject: [PATCH] fix: config limit for int/str conversions --- .github/workflows/ci.yml | 2 ++ environment.sh | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab2edb7..e24986b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,7 @@ jobs: run: pip install -r requirements.frozen.txt - name: Run Tests run: python -m pytest --cov=hermit --cov-config=tests/.coveragerc --ignore=vendor + env: + PYTHONINTMAXSTRDIGITS: 68000 - name: Coverage run: codecov diff --git a/environment.sh b/environment.sh index 6f9b61f..6e2e763 100644 --- a/environment.sh +++ b/environment.sh @@ -70,3 +70,8 @@ if [ ! -e "${SUBMODULES_DIR}/pybitcointools/pybitcointools" ]; then else echo "[git] Submodules present" fi + +# +# Configure integer string conversion length limit in python +# +export PYTHONINTMAXSTRDIGITS=68000