mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 04:06:59 +00:00
We have in test_filtering.py two tests which fail when running on an old version of the Python driver which has a specific bug, so we skip those tests if the buggy driver is installed. But the code to check the driver version is duplicated twice, so in this patch we move the version-checking-and-skipping code to a fixture, which we can use twice. The motivation is that in the next patch we will want to introduce a third use of the same code - and a fixture is cleaner than a third duplicate. This patch is supposed to be code-movement only, without functional changes. Signed-off-by: Nadav Har'El <nyh@scylladb.com>