linuxwacom / xf86-input-wacom

X.Org driver for Wacom devices
361 stars 45 forks source link

meson: default to pytest-3 first, then pytest #277

Closed whot closed 2 years ago

whot commented 2 years ago

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

whot commented 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