Commit 31be9c9
committed
CI: use pytest append import mode so the installed wheel wins
In cibuildwheel the tests are run against the installed wheel, but pytest's
default 'prepend' import mode inserts the project root at sys.path[0]. That
shadows the installed compiled wheel with the in-tree pure-Python cassandra/
source, so 'import cassandra.row_parser' / 'cassandra.io.libevreactor' /
'cassandra.cmurmur3' all fail and every libev/cmurmur3/Cython test skips.
Under CASS_DRIVER_NO_SKIP those skips became failures. Switch to
--import-mode=append so site-packages (the wheel) takes precedence while the
'tests' package is still importable from the appended project root.1 parent f3875e1 commit 31be9c9
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
0 commit comments