Modern (as of Fedora 37) pytest has the "-sP" flags in the Python command line, as found in /usr/bin/pytest. This means it will reject the site-packages directory, where we install the Scylla Python driver. This causes all the tests to fail. Work around it by supplying an alternative pytest script that does not have this change. Closes #11764
8 lines
147 B
Bash
Executable File
8 lines
147 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
# Modern pytest excludes site-packages, so it doesn't see scylla-driver.
|
|
# This script is a workaround.
|
|
|
|
exec python -m pytest "$@"
|
|
|