From d545dbd6ebff527a5b1ec67397b36e165a319e1e Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 3 Aug 2021 18:22:30 +0200 Subject: [PATCH] test_wheel: Fix for Python 3.4 [skip ci] --- makepanda/test_wheel.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/makepanda/test_wheel.py b/makepanda/test_wheel.py index 73e4bb8e13..e234891425 100755 --- a/makepanda/test_wheel.py +++ b/makepanda/test_wheel.py @@ -50,8 +50,12 @@ def test_wheel(wheel, verbose=False): # Install pytest into the environment, as well as our wheel. packages = ["pytest", wheel] - if sys.version_info[0:2] == (3, 4) and sys.platform == "win32": - packages += ["colorama==0.4.1"] + if sys.version_info[0:2] == (3, 4): + if sys.platform == "win32": + packages += ["colorama==0.4.1"] + + # See https://github.com/python-attrs/attrs/pull/807 + packages += ["attrs<21"] if subprocess.call([python, "-m", "pip", "install"] + packages) != 0: shutil.rmtree(envdir)