From 7acd8df906b9f9de2137984c856eb7c5f86f4fb1 Mon Sep 17 00:00:00 2001 From: canewsin Date: Sun, 28 Nov 2021 22:06:50 +0530 Subject: [PATCH] Fix xrange is undefined error - xrange is undefined error in Tor-v3 Patch Files --- .github/workflows/tests.yml | 4 ++-- src/Crypt/CryptEd25519.py | 2 +- src/Test/pytest.ini | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9c6f6f3b2..e16a9c658 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,11 +5,11 @@ on: [push, pull_request] jobs: test: - runs-on: ubuntu-16.04 + runs-on: ubuntu-18.04 strategy: max-parallel: 16 matrix: - python-version: [3.5, 3.6, 3.7, 3.8, 3.9] + python-version: [3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 diff --git a/src/Crypt/CryptEd25519.py b/src/Crypt/CryptEd25519.py index fc05a9329..20bdc1a91 100644 --- a/src/Crypt/CryptEd25519.py +++ b/src/Crypt/CryptEd25519.py @@ -63,7 +63,7 @@ int2byte = operator.methodcaller("to_bytes", 1, "big") else: int2byte = chr - range = xrange + range = list(range(1,10000000)) def indexbytes(buf, i): return ord(buf[i]) diff --git a/src/Test/pytest.ini b/src/Test/pytest.ini index 556389a29..0ffb385fc 100644 --- a/src/Test/pytest.ini +++ b/src/Test/pytest.ini @@ -1,6 +1,6 @@ [pytest] python_files = Test*.py -addopts = -rsxX -v --durations=6 --no-print-logs --capture=fd +addopts = -rsxX -v --durations=6 --capture=fd markers = slow: mark a tests as slow. webtest: mark a test as a webtest.