File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 4141 pip install 'numpy<2'
4242
4343 # Ensure we are testing with npyodbc compiled against numpy>=2.
44- # Don't prepend the current working directory, it will inadvertently try to import
45- # the local npyodbc code which doesn't have the compiled extension
46- python -P -c 'import npyodbc; assert npyodbc.numpy_abi_version >= 0x2000000'
44+ # Run this somewhere besides the current working directory, because python will
45+ # inadvertently try to import the local npyodbc code which doesn't have the compiled
46+ # extension otherwise. After 3.10 support is dropped, we can just use the -P flag instead
47+ # but for now...
48+ pushd tests/
49+ python -c 'import npyodbc; assert npyodbc.numpy_abi_version >= 0x2000000'
50+ popd
4751 pytest tests/test_numpy.py
You can’t perform that action at this time.
0 commit comments