Closed whot closed 2 years ago
For the archives and since the wiki page points here now: the error thrown by the Python2 pytest is
ImportError while loading conftest '/home/ping/wacom/xf86-input-wacom/test/conftest.py'.
File "/home/ping/wacom/xf86-input-wacom/test/__init__.py", line 52
product: int = attr.ib()
^
SyntaxError: invalid syntax
At least Ubuntu 20.04 has pytest point at the Python 2.x compatible version, resulting in syntax errors when trying to parse our Python 3 code files. So let's check pytest-3 first since that is the compatible version and fall back to normal pytest only where it's missing.
Fixes #272