Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/python-Bottleneck.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-47895-2059/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/python-Bottleneck.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/python-Bottleneck-1.3.2-3.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/python-Bottleneck.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-47895-2059/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/python-Bottleneck.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yTcTww + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf Bottleneck-1.3.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/Bottleneck-1.3.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Bottleneck-1.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr '.egg*' Bottleneck.egg-info + rm -f 'doc/sphinxext/numpydoc.py*' + sed -i /contributors/d doc/source/conf.py + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HjCM1f + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Bottleneck-1.3.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib.linux-aarch64-cpython-310 creating build/lib.linux-aarch64-cpython-310/bottleneck copying bottleneck/_version.py -> build/lib.linux-aarch64-cpython-310/bottleneck copying bottleneck/_pytesttester.py -> build/lib.linux-aarch64-cpython-310/bottleneck copying bottleneck/__init__.py -> build/lib.linux-aarch64-cpython-310/bottleneck creating build/lib.linux-aarch64-cpython-310/bottleneck/src copying bottleneck/src/bn_config.py -> build/lib.linux-aarch64-cpython-310/bottleneck/src copying bottleneck/src/bn_template.py -> build/lib.linux-aarch64-cpython-310/bottleneck/src copying bottleneck/src/__init__.py -> build/lib.linux-aarch64-cpython-310/bottleneck/src creating build/lib.linux-aarch64-cpython-310/bottleneck/benchmark copying bottleneck/benchmark/autotimeit.py -> build/lib.linux-aarch64-cpython-310/bottleneck/benchmark copying bottleneck/benchmark/bench.py -> build/lib.linux-aarch64-cpython-310/bottleneck/benchmark copying bottleneck/benchmark/bench_detailed.py -> build/lib.linux-aarch64-cpython-310/bottleneck/benchmark copying bottleneck/benchmark/__init__.py -> build/lib.linux-aarch64-cpython-310/bottleneck/benchmark creating build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/nonreduce_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/input_modification_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/memory_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/move_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/util.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/scalar_input_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/reduce_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/list_input_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/__init__.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests copying bottleneck/tests/nonreduce_axis_test.py -> build/lib.linux-aarch64-cpython-310/bottleneck/tests creating build/lib.linux-aarch64-cpython-310/bottleneck/slow copying bottleneck/slow/reduce.py -> build/lib.linux-aarch64-cpython-310/bottleneck/slow copying bottleneck/slow/move.py -> build/lib.linux-aarch64-cpython-310/bottleneck/slow copying bottleneck/slow/nonreduce.py -> build/lib.linux-aarch64-cpython-310/bottleneck/slow copying bottleneck/slow/nonreduce_axis.py -> build/lib.linux-aarch64-cpython-310/bottleneck/slow copying bottleneck/slow/__init__.py -> build/lib.linux-aarch64-cpython-310/bottleneck/slow UPDATING build/lib.linux-aarch64-cpython-310/bottleneck/_version.py set build/lib.linux-aarch64-cpython-310/bottleneck/_version.py to '1.3.2' running build_ext running config compiling '_configtest.c': #pragma GCC diagnostic error "-Wattributes" int __attribute__((optimize("O3"))) have_attribute_optimize_opt_3(void*); int main(void) { return 0; } gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -c _configtest.c -o _configtest.o success! removing: _configtest.c _configtest.o compiling '_configtest.c': #ifndef __cplusplus static inline int static_func (void) { return 0; } inline int nostatic_func (void) { return 0; } #endif int main(void) { int r1 = static_func(); int r2 = nostatic_func(); return r1 + r2; } gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -c _configtest.c -o _configtest.o success! removing: _configtest.c _configtest.o building 'bottleneck.reduce' extension creating build/temp.linux-aarch64-cpython-310 creating build/temp.linux-aarch64-cpython-310/bottleneck creating build/temp.linux-aarch64-cpython-310/bottleneck/src gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/lib64/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -Ibottleneck/src -c bottleneck/src/reduce.c -o build/temp.linux-aarch64-cpython-310/bottleneck/src/reduce.o -O2 gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-aarch64-cpython-310/bottleneck/src/reduce.o -L/usr/lib64 -o build/lib.linux-aarch64-cpython-310/bottleneck/reduce.cpython-310-aarch64-linux-gnu.so building 'bottleneck.move' extension creating build/temp.linux-aarch64-cpython-310/bottleneck/src/move_median gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/lib64/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -Ibottleneck/src -c bottleneck/src/move.c -o build/temp.linux-aarch64-cpython-310/bottleneck/src/move.o -O2 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/lib64/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -Ibottleneck/src -c bottleneck/src/move_median/move_median.c -o build/temp.linux-aarch64-cpython-310/bottleneck/src/move_median/move_median.o -O2 gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-aarch64-cpython-310/bottleneck/src/move.o build/temp.linux-aarch64-cpython-310/bottleneck/src/move_median/move_median.o -L/usr/lib64 -o build/lib.linux-aarch64-cpython-310/bottleneck/move.cpython-310-aarch64-linux-gnu.so building 'bottleneck.nonreduce' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/lib64/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -Ibottleneck/src -c bottleneck/src/nonreduce.c -o build/temp.linux-aarch64-cpython-310/bottleneck/src/nonreduce.o -O2 gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-aarch64-cpython-310/bottleneck/src/nonreduce.o -L/usr/lib64 -o build/lib.linux-aarch64-cpython-310/bottleneck/nonreduce.cpython-310-aarch64-linux-gnu.so building 'bottleneck.nonreduce_axis' extension gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fPIC -I/usr/lib64/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -Ibottleneck/src -c bottleneck/src/nonreduce_axis.c -o build/temp.linux-aarch64-cpython-310/bottleneck/src/nonreduce_axis.o -O2 gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection build/temp.linux-aarch64-cpython-310/bottleneck/src/nonreduce_axis.o -L/usr/lib64 -o build/lib.linux-aarch64-cpython-310/bottleneck/nonreduce_axis.cpython-310-aarch64-linux-gnu.so + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.OwtMQu + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64 ++ dirname /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64 + cd Bottleneck-1.3.2 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64 running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running install_lib creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64 creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10 creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src copying build/lib.linux-aarch64-cpython-310/bottleneck/src/bn_config.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src copying build/lib.linux-aarch64-cpython-310/bottleneck/src/bn_template.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src copying build/lib.linux-aarch64-cpython-310/bottleneck/src/__init__.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src copying build/lib.linux-aarch64-cpython-310/bottleneck/_version.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck copying build/lib.linux-aarch64-cpython-310/bottleneck/nonreduce.cpython-310-aarch64-linux-gnu.so -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck copying build/lib.linux-aarch64-cpython-310/bottleneck/move.cpython-310-aarch64-linux-gnu.so -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck copying build/lib.linux-aarch64-cpython-310/bottleneck/_pytesttester.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark copying build/lib.linux-aarch64-cpython-310/bottleneck/benchmark/autotimeit.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark copying build/lib.linux-aarch64-cpython-310/bottleneck/benchmark/bench.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark copying build/lib.linux-aarch64-cpython-310/bottleneck/benchmark/bench_detailed.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark copying build/lib.linux-aarch64-cpython-310/bottleneck/benchmark/__init__.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/nonreduce_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/input_modification_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/memory_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/move_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/util.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/scalar_input_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/reduce_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/list_input_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/__init__.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/tests/nonreduce_axis_test.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests copying build/lib.linux-aarch64-cpython-310/bottleneck/__init__.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck creating /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow copying build/lib.linux-aarch64-cpython-310/bottleneck/slow/reduce.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow copying build/lib.linux-aarch64-cpython-310/bottleneck/slow/move.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow copying build/lib.linux-aarch64-cpython-310/bottleneck/slow/nonreduce.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow copying build/lib.linux-aarch64-cpython-310/bottleneck/slow/nonreduce_axis.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow copying build/lib.linux-aarch64-cpython-310/bottleneck/slow/__init__.py -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow copying build/lib.linux-aarch64-cpython-310/bottleneck/reduce.cpython-310-aarch64-linux-gnu.so -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck copying build/lib.linux-aarch64-cpython-310/bottleneck/nonreduce_axis.cpython-310-aarch64-linux-gnu.so -> /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src/bn_config.py to bn_config.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src/bn_template.py to bn_template.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/_version.py to _version.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/_pytesttester.py to _pytesttester.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark/autotimeit.py to autotimeit.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark/bench.py to bench.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark/bench_detailed.py to bench_detailed.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/benchmark/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/nonreduce_test.py to nonreduce_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/input_modification_test.py to input_modification_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/memory_test.py to memory_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/move_test.py to move_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/util.py to util.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/scalar_input_test.py to scalar_input_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/reduce_test.py to reduce_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/list_input_test.py to list_input_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/tests/nonreduce_axis_test.py to nonreduce_axis_test.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/__init__.py to __init__.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow/reduce.py to reduce.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow/move.py to move.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow/nonreduce.py to nonreduce.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow/nonreduce_axis.py to nonreduce_axis.cpython-310.pyc byte-compiling /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow/__init__.py to __init__.cpython-310.pyc writing byte-compilation script '/tmp/tmpjer183zp.py' /usr/bin/python3 /tmp/tmpjer183zp.py removing /tmp/tmpjer183zp.py running install_egg_info running egg_info creating Bottleneck.egg-info writing Bottleneck.egg-info/PKG-INFO writing dependency_links to Bottleneck.egg-info/dependency_links.txt writing requirements to Bottleneck.egg-info/requires.txt writing top-level names to Bottleneck.egg-info/top_level.txt writing manifest file 'Bottleneck.egg-info/SOURCES.txt' reading manifest file 'Bottleneck.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*' found under directory 'doc/build' warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files matching '*~' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'Bottleneck.egg-info/SOURCES.txt' Copying Bottleneck.egg-info to /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/Bottleneck-1.3.2-py3.10.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/bin/__pycache__ + rm -rf /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/src /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/LICENSE + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 1.3.2-3.ocs23 --unique-debug-suffix -1.3.2-3.ocs23.aarch64 --unique-debug-src-base python-Bottleneck-1.3.2-3.ocs23.aarch64 -S debugsourcefiles.list /builddir/build/BUILD/Bottleneck-1.3.2 extracting debug info from /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/nonreduce.cpython-310-aarch64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/move.cpython-310-aarch64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/nonreduce_axis.cpython-310-aarch64-linux-gnu.so extracting debug info from /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/reduce.cpython-310-aarch64-linux-gnu.so 501 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib/debug/usr/lib64/python3.10 using python3.10 Bytecompiling .py files below /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10 using python3.10 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.b1n8Kg + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS ~/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages ~/build/BUILD/Bottleneck-1.3.2 + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd Bottleneck-1.3.2 + pushd /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages + pytest-3.10 bottleneck -v ============================= test session starts ============================== platform linux -- Python 3.10.5, pytest-7.1.3, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages collecting ... collected 191 items bottleneck/tests/input_modification_test.py::test_modification[nansum] PASSED [ 0%] bottleneck/tests/input_modification_test.py::test_modification[nanmean] PASSED [ 1%] bottleneck/tests/input_modification_test.py::test_modification[nanstd] PASSED [ 1%] bottleneck/tests/input_modification_test.py::test_modification[nanvar] PASSED [ 2%] bottleneck/tests/input_modification_test.py::test_modification[nanmin] PASSED [ 2%] bottleneck/tests/input_modification_test.py::test_modification[nanmax] PASSED [ 3%] bottleneck/tests/input_modification_test.py::test_modification[median] PASSED [ 3%] bottleneck/tests/input_modification_test.py::test_modification[nanmedian] PASSED [ 4%] bottleneck/tests/input_modification_test.py::test_modification[ss] PASSED [ 4%] bottleneck/tests/input_modification_test.py::test_modification[nanargmin] PASSED [ 5%] bottleneck/tests/input_modification_test.py::test_modification[nanargmax] PASSED [ 5%] bottleneck/tests/input_modification_test.py::test_modification[anynan] PASSED [ 6%] bottleneck/tests/input_modification_test.py::test_modification[allnan] PASSED [ 6%] bottleneck/tests/input_modification_test.py::test_modification[move_sum] PASSED [ 7%] bottleneck/tests/input_modification_test.py::test_modification[move_mean] PASSED [ 7%] bottleneck/tests/input_modification_test.py::test_modification[move_std] PASSED [ 8%] bottleneck/tests/input_modification_test.py::test_modification[move_var] PASSED [ 8%] bottleneck/tests/input_modification_test.py::test_modification[move_min] PASSED [ 9%] bottleneck/tests/input_modification_test.py::test_modification[move_max] PASSED [ 9%] bottleneck/tests/input_modification_test.py::test_modification[move_argmin] PASSED [ 10%] bottleneck/tests/input_modification_test.py::test_modification[move_argmax] PASSED [ 10%] bottleneck/tests/input_modification_test.py::test_modification[move_median] PASSED [ 11%] bottleneck/tests/input_modification_test.py::test_modification[move_rank] PASSED [ 12%] bottleneck/tests/input_modification_test.py::test_modification[replace] PASSED [ 12%] bottleneck/tests/input_modification_test.py::test_modification[partition] PASSED [ 13%] bottleneck/tests/input_modification_test.py::test_modification[argpartition] PASSED [ 13%] bottleneck/tests/input_modification_test.py::test_modification[rankdata] PASSED [ 14%] bottleneck/tests/input_modification_test.py::test_modification[nanrankdata] PASSED [ 14%] bottleneck/tests/input_modification_test.py::test_modification[push] PASSED [ 15%] bottleneck/tests/list_input_test.py::test_list_input[nansum] PASSED [ 15%] bottleneck/tests/list_input_test.py::test_list_input[nanmean] PASSED [ 16%] bottleneck/tests/list_input_test.py::test_list_input[nanstd] PASSED [ 16%] bottleneck/tests/list_input_test.py::test_list_input[nanvar] PASSED [ 17%] bottleneck/tests/list_input_test.py::test_list_input[nanmin] PASSED [ 17%] bottleneck/tests/list_input_test.py::test_list_input[nanmax] PASSED [ 18%] bottleneck/tests/list_input_test.py::test_list_input[median] PASSED [ 18%] bottleneck/tests/list_input_test.py::test_list_input[nanmedian] PASSED [ 19%] bottleneck/tests/list_input_test.py::test_list_input[ss] PASSED [ 19%] bottleneck/tests/list_input_test.py::test_list_input[nanargmin] PASSED [ 20%] bottleneck/tests/list_input_test.py::test_list_input[nanargmax] PASSED [ 20%] bottleneck/tests/list_input_test.py::test_list_input[anynan] PASSED [ 21%] bottleneck/tests/list_input_test.py::test_list_input[allnan] PASSED [ 21%] bottleneck/tests/list_input_test.py::test_list_input[move_sum] FAILED [ 22%] bottleneck/tests/list_input_test.py::test_list_input[move_mean] FAILED [ 23%] bottleneck/tests/list_input_test.py::test_list_input[move_std] FAILED [ 23%] bottleneck/tests/list_input_test.py::test_list_input[move_var] FAILED [ 24%] bottleneck/tests/list_input_test.py::test_list_input[move_min] FAILED [ 24%] bottleneck/tests/list_input_test.py::test_list_input[move_max] FAILED [ 25%] bottleneck/tests/list_input_test.py::test_list_input[move_argmin] FAILED [ 25%] bottleneck/tests/list_input_test.py::test_list_input[move_argmax] FAILED [ 26%] bottleneck/tests/list_input_test.py::test_list_input[move_median] FAILED [ 26%] bottleneck/tests/list_input_test.py::test_list_input[move_rank] FAILED [ 27%] bottleneck/tests/list_input_test.py::test_list_input[replace] PASSED [ 27%] bottleneck/tests/list_input_test.py::test_list_input[partition] PASSED [ 28%] bottleneck/tests/list_input_test.py::test_list_input[argpartition] PASSED [ 28%] bottleneck/tests/list_input_test.py::test_list_input[rankdata] PASSED [ 29%] bottleneck/tests/list_input_test.py::test_list_input[nanrankdata] PASSED [ 29%] bottleneck/tests/list_input_test.py::test_list_input[push] PASSED [ 30%] bottleneck/tests/memory_test.py::test_memory_leak PASSED [ 30%] bottleneck/tests/move_test.py::test_move[move_sum] FAILED [ 31%] bottleneck/tests/move_test.py::test_move[move_mean] FAILED [ 31%] bottleneck/tests/move_test.py::test_move[move_std] FAILED [ 32%] bottleneck/tests/move_test.py::test_move[move_var] FAILED [ 32%] bottleneck/tests/move_test.py::test_move[move_min] FAILED [ 33%] bottleneck/tests/move_test.py::test_move[move_max] FAILED [ 34%] bottleneck/tests/move_test.py::test_move[move_argmin] FAILED [ 34%] bottleneck/tests/move_test.py::test_move[move_argmax] FAILED [ 35%] bottleneck/tests/move_test.py::test_move[move_median] FAILED [ 35%] bottleneck/tests/move_test.py::test_move[move_rank] FAILED [ 36%] bottleneck/tests/move_test.py::test_arg_parsing[move_sum] FAILED [ 36%] bottleneck/tests/move_test.py::test_arg_parsing[move_mean] FAILED [ 37%] bottleneck/tests/move_test.py::test_arg_parsing[move_std] FAILED [ 37%] bottleneck/tests/move_test.py::test_arg_parsing[move_var] FAILED [ 38%] bottleneck/tests/move_test.py::test_arg_parsing[move_min] FAILED [ 38%] bottleneck/tests/move_test.py::test_arg_parsing[move_max] FAILED [ 39%] bottleneck/tests/move_test.py::test_arg_parsing[move_argmin] FAILED [ 39%] bottleneck/tests/move_test.py::test_arg_parsing[move_argmax] FAILED [ 40%] bottleneck/tests/move_test.py::test_arg_parsing[move_median] FAILED [ 40%] bottleneck/tests/move_test.py::test_arg_parsing[move_rank] FAILED [ 41%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_sum] PASSED [ 41%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_mean] PASSED [ 42%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_std] PASSED [ 42%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_var] PASSED [ 43%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_min] PASSED [ 43%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_max] PASSED [ 44%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_argmin] PASSED [ 45%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_argmax] PASSED [ 45%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_median] PASSED [ 46%] bottleneck/tests/move_test.py::test_arg_parse_raises[move_rank] PASSED [ 46%] bottleneck/tests/move_test.py::test_move_median_with_nans FAILED [ 47%] bottleneck/tests/move_test.py::test_move_median_without_nans FAILED [ 47%] bottleneck/tests/move_test.py::test_move_std_sqrt PASSED [ 48%] bottleneck/tests/nonreduce_axis_test.py::test_partition_and_argpartition[partition] PASSED [ 48%] bottleneck/tests/nonreduce_axis_test.py::test_partition_and_argpartition[argpartition] PASSED [ 49%] bottleneck/tests/nonreduce_axis_test.py::test_transpose PASSED [ 49%] bottleneck/tests/nonreduce_axis_test.py::test_nonreduce_axis[rankdata] PASSED [ 50%] bottleneck/tests/nonreduce_axis_test.py::test_nonreduce_axis[nanrankdata] PASSED [ 50%] bottleneck/tests/nonreduce_axis_test.py::test_nonreduce_axis[push] PASSED [ 51%] bottleneck/tests/nonreduce_axis_test.py::test_push PASSED [ 51%] bottleneck/tests/nonreduce_axis_test.py::test_arg_parsing[partition] PASSED [ 52%] bottleneck/tests/nonreduce_axis_test.py::test_arg_parsing[argpartition] PASSED [ 52%] bottleneck/tests/nonreduce_axis_test.py::test_arg_parsing[rankdata] PASSED [ 53%] bottleneck/tests/nonreduce_axis_test.py::test_arg_parsing[nanrankdata] PASSED [ 53%] bottleneck/tests/nonreduce_axis_test.py::test_arg_parsing[push] PASSED [ 54%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[partition-float64] PASSED [ 54%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[partition-float32] PASSED [ 55%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[partition-int64] PASSED [ 56%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[partition-int32] PASSED [ 56%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[argpartition-float64] PASSED [ 57%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[argpartition-float32] PASSED [ 57%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[argpartition-int64] PASSED [ 58%] bottleneck/tests/nonreduce_axis_test.py::test_out_of_bounds_raises[argpartition-int32] PASSED [ 58%] bottleneck/tests/nonreduce_test.py::test_nonreduce[replace] PASSED [ 59%] bottleneck/tests/nonreduce_test.py::test_replace_unsafe_cast PASSED [ 59%] bottleneck/tests/nonreduce_test.py::test_non_array PASSED [ 60%] bottleneck/tests/nonreduce_test.py::test_replace_nan_int[int64] PASSED [ 60%] bottleneck/tests/nonreduce_test.py::test_replace_nan_int[int32] PASSED [ 61%] bottleneck/tests/nonreduce_test.py::test_replace_bad_args PASSED [ 61%] bottleneck/tests/nonreduce_test.py::test_replace_newaxis[float64] PASSED [ 62%] bottleneck/tests/nonreduce_test.py::test_replace_newaxis[float32] PASSED [ 62%] bottleneck/tests/nonreduce_test.py::test_replace_newaxis[int64] PASSED [ 63%] bottleneck/tests/nonreduce_test.py::test_replace_newaxis[int32] PASSED [ 63%] bottleneck/tests/reduce_test.py::test_reduce[nansum] PASSED [ 64%] bottleneck/tests/reduce_test.py::test_reduce[nanmean] PASSED [ 64%] bottleneck/tests/reduce_test.py::test_reduce[nanstd] PASSED [ 65%] bottleneck/tests/reduce_test.py::test_reduce[nanvar] PASSED [ 65%] bottleneck/tests/reduce_test.py::test_reduce[nanmin] PASSED [ 66%] bottleneck/tests/reduce_test.py::test_reduce[nanmax] PASSED [ 67%] bottleneck/tests/reduce_test.py::test_reduce[median] PASSED [ 67%] bottleneck/tests/reduce_test.py::test_reduce[nanmedian] PASSED [ 68%] bottleneck/tests/reduce_test.py::test_reduce[ss] PASSED [ 68%] bottleneck/tests/reduce_test.py::test_reduce[nanargmin] PASSED [ 69%] bottleneck/tests/reduce_test.py::test_reduce[nanargmax] PASSED [ 69%] bottleneck/tests/reduce_test.py::test_reduce[anynan] PASSED [ 70%] bottleneck/tests/reduce_test.py::test_reduce[allnan] PASSED [ 70%] bottleneck/tests/reduce_test.py::test_arg_parsing[nansum] PASSED [ 71%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanmean] PASSED [ 71%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanstd] PASSED [ 72%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanvar] PASSED [ 72%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanmin] PASSED [ 73%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanmax] PASSED [ 73%] bottleneck/tests/reduce_test.py::test_arg_parsing[median] PASSED [ 74%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanmedian] PASSED [ 74%] bottleneck/tests/reduce_test.py::test_arg_parsing[ss] PASSED [ 75%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanargmin] PASSED [ 75%] bottleneck/tests/reduce_test.py::test_arg_parsing[nanargmax] PASSED [ 76%] bottleneck/tests/reduce_test.py::test_arg_parsing[anynan] PASSED [ 76%] bottleneck/tests/reduce_test.py::test_arg_parsing[allnan] PASSED [ 77%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nansum] PASSED [ 78%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanmean] PASSED [ 78%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanstd] PASSED [ 79%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanvar] PASSED [ 79%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanmin] PASSED [ 80%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanmax] PASSED [ 80%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[median] PASSED [ 81%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanmedian] PASSED [ 81%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[ss] PASSED [ 82%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanargmin] PASSED [ 82%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[nanargmax] PASSED [ 83%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[anynan] PASSED [ 83%] bottleneck/tests/reduce_test.py::test_arg_parse_raises[allnan] PASSED [ 84%] bottleneck/tests/reduce_test.py::test_nanmax_size_zero PASSED [ 84%] bottleneck/tests/reduce_test.py::test_nanmin_size_zero PASSED [ 85%] bottleneck/tests/reduce_test.py::test_nanstd_issue60 PASSED [ 85%] bottleneck/tests/reduce_test.py::test_nanvar_issue60 PASSED [ 86%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanstd-float64] PASSED [ 86%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanstd-float32] PASSED [ 87%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanstd-int64] PASSED [ 87%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanstd-int32] PASSED [ 88%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanvar-float64] PASSED [ 89%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanvar-float32] PASSED [ 89%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanvar-int64] PASSED [ 90%] bottleneck/tests/reduce_test.py::test_ddof_nans[nanvar-int32] PASSED [ 90%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nansum] PASSED [ 91%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanmean] PASSED [ 91%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanstd] PASSED [ 92%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanvar] PASSED [ 92%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanmin] PASSED [ 93%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanmax] PASSED [ 93%] bottleneck/tests/scalar_input_test.py::test_scalar_input[median] PASSED [ 94%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanmedian] PASSED [ 94%] bottleneck/tests/scalar_input_test.py::test_scalar_input[ss] PASSED [ 95%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanargmin] PASSED [ 95%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanargmax] PASSED [ 96%] bottleneck/tests/scalar_input_test.py::test_scalar_input[anynan] PASSED [ 96%] bottleneck/tests/scalar_input_test.py::test_scalar_input[allnan] PASSED [ 97%] bottleneck/tests/scalar_input_test.py::test_scalar_input[partition] PASSED [ 97%] bottleneck/tests/scalar_input_test.py::test_scalar_input[argpartition] PASSED [ 98%] bottleneck/tests/scalar_input_test.py::test_scalar_input[rankdata] PASSED [ 98%] bottleneck/tests/scalar_input_test.py::test_scalar_input[nanrankdata] PASSED [ 99%] bottleneck/tests/scalar_input_test.py::test_scalar_input[push] PASSED [100%] =================================== FAILURES =================================== __________________________ test_list_input[move_sum] ___________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:24: in move_sum return move_func(np.nansum, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_list_input[move_mean] __________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:29: in move_mean return move_func(np.nanmean, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_list_input[move_std] ___________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:34: in move_std return move_func(np.nanstd, a, window, min_count, axis=axis, ddof=ddof) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_list_input[move_var] ___________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:39: in move_var return move_func(np.nanvar, a, window, min_count, axis=axis, ddof=ddof) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_list_input[move_min] ___________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:44: in move_min return move_func(np.nanmin, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_list_input[move_max] ___________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:49: in move_max return move_func(np.nanmax, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _________________________ test_list_input[move_argmin] _________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:75: in move_argmin return move_func(argmin, a, window, min_count, axis=axis) bottleneck/slow/move.py:149: in move_func y[tuple(idx2)] = func(a[tuple(idx1)], axis=axis, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = array([0.]), axis = -1 def argmin(a, axis): a = np.array(a, copy=False) flip = [slice(None)] * a.ndim flip[axis] = slice(None, None, -1) > a = a[flip] # if tie, pick index of rightmost tie E IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices bottleneck/slow/move.py:59: IndexError _________________________ test_list_input[move_argmax] _________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:101: in move_argmax return move_func(argmax, a, window, min_count, axis=axis) bottleneck/slow/move.py:149: in move_func y[tuple(idx2)] = func(a[tuple(idx1)], axis=axis, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = array([0.]), axis = -1 def argmax(a, axis): a = np.array(a, copy=False) flip = [slice(None)] * a.ndim flip[axis] = slice(None, None, -1) > a = a[flip] # if tie, pick index of rightmost tie E IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices bottleneck/slow/move.py:85: IndexError _________________________ test_list_input[move_median] _________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:106: in move_median return move_func(np.nanmedian, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_list_input[move_rank] __________________________ func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: > actual = func(a) E TypeError: wrong number of arguments bottleneck/tests/list_input_test.py:42: TypeError During handling of the above exception, another exception occurred: func = @pytest.mark.parametrize("func", bn.get_functions("all"), ids=lambda x: x.__name__) def test_list_input(func): """Test that bn.xxx gives the same output as bn.slow.xxx for list input.""" msg = "\nfunc %s | input %s (%s) | shape %s\n" msg += "\nInput array:\n%s\n" name = func.__name__ if name == "replace": return func0 = eval("bn.slow.%s" % name) for i, a in enumerate(lists()): with warnings.catch_warnings(): warnings.simplefilter("ignore") try: actual = func(a) desired = func0(a) except TypeError: actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/list_input_test.py:46: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:111: in move_rank return move_func(lastrank, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_sum] ______________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:24: in move_sum return move_func(np.nansum, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_mean] _____________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:29: in move_mean return move_func(np.nanmean, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_std] ______________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:34: in move_std return move_func(np.nanstd, a, window, min_count, axis=axis, ddof=ddof) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_var] ______________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:39: in move_var return move_func(np.nanvar, a, window, min_count, axis=axis, ddof=ddof) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_min] ______________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:44: in move_min return move_func(np.nanmin, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_max] ______________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:49: in move_max return move_func(np.nanmax, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError ____________________________ test_move[move_argmin] ____________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:75: in move_argmin return move_func(argmin, a, window, min_count, axis=axis) bottleneck/slow/move.py:149: in move_func y[tuple(idx2)] = func(a[tuple(idx1)], axis=axis, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = array([inf], dtype=float32), axis = -1 def argmin(a, axis): a = np.array(a, copy=False) flip = [slice(None)] * a.ndim flip[axis] = slice(None, None, -1) > a = a[flip] # if tie, pick index of rightmost tie E IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices bottleneck/slow/move.py:59: IndexError ____________________________ test_move[move_argmax] ____________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:101: in move_argmax return move_func(argmax, a, window, min_count, axis=axis) bottleneck/slow/move.py:149: in move_func y[tuple(idx2)] = func(a[tuple(idx1)], axis=axis, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = array([inf], dtype=float32), axis = -1 def argmax(a, axis): a = np.array(a, copy=False) flip = [slice(None)] * a.ndim flip[axis] = slice(None, None, -1) > a = a[flip] # if tie, pick index of rightmost tie E IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices bottleneck/slow/move.py:85: IndexError ____________________________ test_move[move_median] ____________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:106: in move_median return move_func(np.nanmedian, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _____________________________ test_move[move_rank] _____________________________ func = @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_move(func): """Test that bn.xxx gives the same output as a reference function.""" fmt = ( "\nfunc %s | window %d | min_count %s | input %s (%s) | shape %s | " "axis %s | order %s\n" ) fmt += "\nInput array:\n%s\n" aaae = assert_array_almost_equal func_name = func.__name__ func0 = eval("bn.slow.%s" % func_name) if func_name == "move_var": decimal = 3 else: decimal = 5 for i, a in enumerate(arrays(func_name)): axes = range(-1, a.ndim) for axis in axes: windows = range(1, a.shape[axis]) for window in windows: min_counts = list(range(1, window + 1)) + [None] for min_count in min_counts: actual = func(a, window, min_count, axis=axis) > desired = func0(a, window, min_count, axis=axis) bottleneck/tests/move_test.py:33: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:111: in move_rank return move_func(lastrank, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_arg_parsing[move_sum] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:24: in move_sum return move_func(np.nansum, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _________________________ test_arg_parsing[move_mean] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:29: in move_mean return move_func(np.nanmean, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_arg_parsing[move_std] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:34: in move_std return move_func(np.nanstd, a, window, min_count, axis=axis, ddof=ddof) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_arg_parsing[move_var] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:39: in move_var return move_func(np.nanvar, a, window, min_count, axis=axis, ddof=ddof) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_arg_parsing[move_min] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:44: in move_min return move_func(np.nanmin, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_arg_parsing[move_max] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:49: in move_max return move_func(np.nanmax, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError ________________________ test_arg_parsing[move_argmin] _________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:75: in move_argmin return move_func(argmin, a, window, min_count, axis=axis) bottleneck/slow/move.py:149: in move_func y[tuple(idx2)] = func(a[tuple(idx1)], axis=axis, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = array([1.]), axis = -1 def argmin(a, axis): a = np.array(a, copy=False) flip = [slice(None)] * a.ndim flip[axis] = slice(None, None, -1) > a = a[flip] # if tie, pick index of rightmost tie E IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices bottleneck/slow/move.py:59: IndexError ________________________ test_arg_parsing[move_argmax] _________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:101: in move_argmax return move_func(argmax, a, window, min_count, axis=axis) bottleneck/slow/move.py:149: in move_func y[tuple(idx2)] = func(a[tuple(idx1)], axis=axis, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ a = array([1.]), axis = -1 def argmax(a, axis): a = np.array(a, copy=False) flip = [slice(None)] * a.ndim flip[axis] = slice(None, None, -1) > a = a[flip] # if tie, pick index of rightmost tie E IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices bottleneck/slow/move.py:85: IndexError ________________________ test_arg_parsing[move_median] _________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:106: in move_median return move_func(np.nanmedian, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError _________________________ test_arg_parsing[move_rank] __________________________ func = , decimal = 5 @pytest.mark.parametrize("func", bn.get_functions("move"), ids=lambda x: x.__name__) def test_arg_parsing(func, decimal=5): """test argument parsing.""" name = func.__name__ func0 = eval("bn.slow.%s" % name) a = np.array([1.0, 2, 3]) fmt = "\n%s" % func fmt += "%s\n" fmt += "\nInput array:\n%s\n" % a actual = func(a, 2) > desired = func0(a, 2) bottleneck/tests/move_test.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:111: in move_rank return move_func(lastrank, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError __________________________ test_move_median_with_nans __________________________ def test_move_median_with_nans(): """test move_median.c with nans""" fmt = "\nfunc %s | window %d | min_count %s\n\nInput array:\n%s\n" aaae = assert_array_almost_equal min_count = 1 size = 10 func = bn.move_median func0 = bn.slow.move_median rs = np.random.RandomState([1, 2, 3]) for i in range(100): a = np.arange(size, dtype=np.float64) idx = rs.rand(*a.shape) < 0.1 a[idx] = np.inf idx = rs.rand(*a.shape) < 0.2 a[idx] = np.nan rs.shuffle(a) for window in range(2, size + 1): actual = func(a, window=window, min_count=min_count) > desired = func0(a, window=window, min_count=min_count) bottleneck/tests/move_test.py:164: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:106: in move_median return move_func(np.nanmedian, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError ________________________ test_move_median_without_nans _________________________ def test_move_median_without_nans(): """test move_median.c without nans""" fmt = "\nfunc %s | window %d | min_count %s\n\nInput array:\n%s\n" aaae = assert_array_almost_equal min_count = 1 size = 10 func = bn.move_median func0 = bn.slow.move_median rs = np.random.RandomState([1, 2, 3]) for i in range(100): a = np.arange(size, dtype=np.int64) rs.shuffle(a) for window in range(2, size + 1): actual = func(a, window=window, min_count=min_count) > desired = func0(a, window=window, min_count=min_count) bottleneck/tests/move_test.py:183: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bottleneck/slow/move.py:106: in move_median return move_func(np.nanmedian, a, window, min_count, axis=axis) bottleneck/slow/move.py:150: in move_func idx = _mask(a, window, mc, axis) bottleneck/slow/move.py:168: in _mask idx = np.empty(a.shape, dtype=np.bool) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'bool' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings import math try: msg = __expired_functions__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) def _expired(*args, **kwds): raise RuntimeError(msg) return _expired # Emit warnings for deprecated attributes try: val, msg = __deprecated_attrs__[attr] except KeyError: pass else: warnings.warn(msg, DeprecationWarning, stacklevel=2) return val if attr in __future_scalars__: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar.", FutureWarning, stacklevel=2) if attr in __former_attrs__: > raise AttributeError(__former_attrs__[attr]) E AttributeError: module 'numpy' has no attribute 'bool'. E `np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations /usr/lib64/python3.10/site-packages/numpy/__init__.py:319: AttributeError =============================== warnings summary =============================== bottleneck/tests/move_test.py: 18 warnings /builddir/build/BUILDROOT/python-Bottleneck-1.3.2-3.ocs23.aarch64/usr/lib64/python3.10/site-packages/bottleneck/slow/move.py:168: FutureWarning: In the future `np.bool` will be defined as the corresponding NumPy scalar. idx = np.empty(a.shape, dtype=np.bool) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED bottleneck/tests/list_input_test.py::test_list_input[move_sum] - Attri... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_mean] - Attr... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_std] - Attri... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_var] - Attri... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_min] - Attri... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_max] - Attri... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_argmin] - In... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_argmax] - In... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_median] - At... FAILED bottleneck/tests/list_input_test.py::test_list_input[move_rank] - Attr... FAILED bottleneck/tests/move_test.py::test_move[move_sum] - AttributeError: m... FAILED bottleneck/tests/move_test.py::test_move[move_mean] - AttributeError: ... FAILED bottleneck/tests/move_test.py::test_move[move_std] - AttributeError: m... FAILED bottleneck/tests/move_test.py::test_move[move_var] - AttributeError: m... FAILED bottleneck/tests/move_test.py::test_move[move_min] - AttributeError: m... FAILED bottleneck/tests/move_test.py::test_move[move_max] - AttributeError: m... FAILED bottleneck/tests/move_test.py::test_move[move_argmin] - IndexError: on... FAILED bottleneck/tests/move_test.py::test_move[move_argmax] - IndexError: on... FAILED bottleneck/tests/move_test.py::test_move[move_median] - AttributeError... FAILED bottleneck/tests/move_test.py::test_move[move_rank] - AttributeError: ... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_sum] - AttributeE... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_mean] - Attribute... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_std] - AttributeE... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_var] - AttributeE... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_min] - AttributeE... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_max] - AttributeE... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_argmin] - IndexEr... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_argmax] - IndexEr... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_median] - Attribu... FAILED bottleneck/tests/move_test.py::test_arg_parsing[move_rank] - Attribute... FAILED bottleneck/tests/move_test.py::test_move_median_with_nans - AttributeE... FAILED bottleneck/tests/move_test.py::test_move_median_without_nans - Attribu... ================= 32 failed, 159 passed, 18 warnings in 9.04s ================== error: Bad exit status from /var/tmp/rpm-tmp.b1n8Kg (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.b1n8Kg (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/python-Bottleneck.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/python-Bottleneck.spec