Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-textdistance.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-817015-28339/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-textdistance.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Wrote: /builddir/build/SRPMS/python-textdistance-4.2.0-9.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-textdistance.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-817015-28339/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-textdistance.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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1674172800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EoK2kV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf textdistance-4.2.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/textdistance-4.2.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd textdistance-4.2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf textdistance.egg-info + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rLMWIW + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd textdistance-4.2.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running build running build_py creating build creating build/lib creating build/lib/textdistance copying textdistance/benchmark.py -> build/lib/textdistance copying textdistance/libraries.py -> build/lib/textdistance copying textdistance/__init__.py -> build/lib/textdistance copying textdistance/utils.py -> build/lib/textdistance creating build/lib/textdistance/algorithms copying textdistance/algorithms/vector_based.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/compression_based.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/simple.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/sequence_based.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/base.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/edit_based.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/__init__.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/phonetic.py -> build/lib/textdistance/algorithms copying textdistance/algorithms/token_based.py -> build/lib/textdistance/algorithms copying textdistance/libraries.json -> build/lib/textdistance + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.NtvCNX + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch ++ dirname /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd textdistance-4.2.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch --prefix /usr /usr/lib/python3.11/site-packages/setuptools/dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead warnings.warn( /usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running install /usr/lib/python3.11/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-textdistance-4.2.0-9.fc38.noarch/usr creating /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib creating /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance creating /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/vector_based.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/compression_based.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/simple.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/sequence_based.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/base.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/edit_based.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/__init__.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/phonetic.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/algorithms/token_based.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms copying build/lib/textdistance/libraries.json -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance copying build/lib/textdistance/benchmark.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance copying build/lib/textdistance/libraries.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance copying build/lib/textdistance/__init__.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance copying build/lib/textdistance/utils.py -> /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/vector_based.py to vector_based.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/compression_based.py to compression_based.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/simple.py to simple.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/sequence_based.py to sequence_based.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/base.py to base.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/edit_based.py to edit_based.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/phonetic.py to phonetic.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/algorithms/token_based.py to token_based.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/benchmark.py to benchmark.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/libraries.py to libraries.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance/utils.py to utils.cpython-311.pyc writing byte-compilation script '/tmp/tmp3g603raq.py' /usr/bin/python3 /tmp/tmp3g603raq.py removing /tmp/tmp3g603raq.py running install_egg_info running egg_info creating textdistance.egg-info writing textdistance.egg-info/PKG-INFO writing dependency_links to textdistance.egg-info/dependency_links.txt writing requirements to textdistance.egg-info/requires.txt writing top-level names to textdistance.egg-info/top_level.txt writing manifest file 'textdistance.egg-info/SOURCES.txt' reading manifest file 'textdistance.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'textdistance.egg-info/SOURCES.txt' Copying textdistance.egg-info to /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11/site-packages/textdistance-4.2.0-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/bin/__pycache__ + mkdir -p /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/share/doc/python3-textdistance + cp -pr README.md /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/share/doc/python3-textdistance + chmod 644 /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/share/doc/python3-textdistance/README.md + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 4.2.0-9.fc38 --unique-debug-suffix -4.2.0-9.fc38.noarch --unique-debug-src-base python-textdistance-4.2.0-9.fc38.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/textdistance-4.2.0 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 Bytecompiling .py files below /builddir/build/BUILDROOT/python-textdistance-4.2.0-9.fc38.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.bXmwxX + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -I/usr/lib/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd textdistance-4.2.0 + /usr/bin/python3 -m pytest -v -k 'not test_list_of_numbers and not test_qval and not test_compare' ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.2.2, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/builddir/build/BUILD/textdistance-4.2.0/.hypothesis/examples') rootdir: /builddir/build/BUILD/textdistance-4.2.0, configfile: setup.cfg plugins: hypothesis-6.62.1 collecting ... collected 398 items / 19 deselected / 379 selected tests/test_common.py::test_normalization_range[alg0] PASSED [ 0%] tests/test_common.py::test_normalization_range[alg1] PASSED [ 0%] tests/test_common.py::test_normalization_range[alg2] PASSED [ 0%] tests/test_common.py::test_normalization_range[alg3] PASSED [ 1%] tests/test_common.py::test_normalization_range[alg4] PASSED [ 1%] tests/test_common.py::test_normalization_range[alg5] PASSED [ 1%] tests/test_common.py::test_normalization_range[alg6] PASSED [ 1%] tests/test_common.py::test_normalization_range[alg7] FAILED [ 2%] tests/test_common.py::test_normalization_range[alg8] PASSED [ 2%] tests/test_common.py::test_normalization_range[alg9] PASSED [ 2%] tests/test_common.py::test_normalization_range[alg10] PASSED [ 2%] tests/test_common.py::test_normalization_range[alg11] PASSED [ 3%] tests/test_common.py::test_normalization_range[alg12] PASSED [ 3%] tests/test_common.py::test_normalization_range[alg13] PASSED [ 3%] tests/test_common.py::test_normalization_range[alg14] PASSED [ 3%] tests/test_common.py::test_normalization_range[alg15] PASSED [ 4%] tests/test_common.py::test_normalization_range[alg16] PASSED [ 4%] tests/test_common.py::test_normalization_range[alg17] PASSED [ 4%] tests/test_common.py::test_normalization_range[alg18] PASSED [ 5%] tests/test_common.py::test_normalization_range[alg19] PASSED [ 5%] tests/test_common.py::test_normalization_range[alg20] PASSED [ 5%] tests/test_common.py::test_normalization_range[alg21] FAILED [ 5%] tests/test_common.py::test_normalization_range[alg22] FAILED [ 6%] tests/test_common.py::test_normalization_range[alg23] FAILED [ 6%] tests/test_common.py::test_normalization_by_one[alg0] PASSED [ 6%] tests/test_common.py::test_normalization_by_one[alg1] PASSED [ 6%] tests/test_common.py::test_normalization_by_one[alg2] PASSED [ 7%] tests/test_common.py::test_normalization_by_one[alg3] PASSED [ 7%] tests/test_common.py::test_normalization_by_one[alg4] PASSED [ 7%] tests/test_common.py::test_normalization_by_one[alg5] PASSED [ 7%] tests/test_common.py::test_normalization_by_one[alg6] PASSED [ 8%] tests/test_common.py::test_normalization_by_one[alg7] FAILED [ 8%] tests/test_common.py::test_normalization_by_one[alg8] PASSED [ 8%] tests/test_common.py::test_normalization_by_one[alg9] PASSED [ 8%] tests/test_common.py::test_normalization_by_one[alg10] PASSED [ 9%] tests/test_common.py::test_normalization_by_one[alg11] PASSED [ 9%] tests/test_common.py::test_normalization_by_one[alg12] PASSED [ 9%] tests/test_common.py::test_normalization_by_one[alg13] PASSED [ 10%] tests/test_common.py::test_normalization_by_one[alg14] PASSED [ 10%] tests/test_common.py::test_normalization_by_one[alg15] PASSED [ 10%] tests/test_common.py::test_normalization_by_one[alg16] PASSED [ 10%] tests/test_common.py::test_normalization_by_one[alg17] PASSED [ 11%] tests/test_common.py::test_normalization_by_one[alg18] PASSED [ 11%] tests/test_common.py::test_normalization_by_one[alg19] PASSED [ 11%] tests/test_common.py::test_normalization_by_one[alg20] PASSED [ 11%] tests/test_common.py::test_normalization_by_one[alg21] FAILED [ 12%] tests/test_common.py::test_normalization_by_one[alg22] FAILED [ 12%] tests/test_common.py::test_normalization_by_one[alg23] FAILED [ 12%] tests/test_common.py::test_normalization_same[alg0] PASSED [ 12%] tests/test_common.py::test_normalization_same[alg1] PASSED [ 13%] tests/test_common.py::test_normalization_same[alg2] PASSED [ 13%] tests/test_common.py::test_normalization_same[alg3] PASSED [ 13%] tests/test_common.py::test_normalization_same[alg4] PASSED [ 13%] tests/test_common.py::test_normalization_same[alg5] PASSED [ 14%] tests/test_common.py::test_normalization_same[alg6] PASSED [ 14%] tests/test_common.py::test_normalization_same[alg7] FAILED [ 14%] tests/test_common.py::test_normalization_same[alg8] PASSED [ 15%] tests/test_common.py::test_normalization_same[alg9] PASSED [ 15%] tests/test_common.py::test_normalization_same[alg10] PASSED [ 15%] tests/test_common.py::test_normalization_same[alg11] PASSED [ 15%] tests/test_common.py::test_normalization_same[alg12] PASSED [ 16%] tests/test_common.py::test_normalization_same[alg13] PASSED [ 16%] tests/test_common.py::test_normalization_same[alg14] PASSED [ 16%] tests/test_common.py::test_normalization_same[alg15] PASSED [ 16%] tests/test_common.py::test_normalization_same[alg16] PASSED [ 17%] tests/test_common.py::test_normalization_same[alg17] PASSED [ 17%] tests/test_common.py::test_normalization_same[alg18] PASSED [ 17%] tests/test_common.py::test_normalization_same[alg19] PASSED [ 17%] tests/test_common.py::test_normalization_same[alg20] PASSED [ 18%] tests/test_common.py::test_normalization_same[alg21] FAILED [ 18%] tests/test_common.py::test_normalization_same[alg22] PASSED [ 18%] tests/test_common.py::test_normalization_same[alg23] PASSED [ 18%] tests/test_common.py::test_normalization_monotonic[alg0] PASSED [ 19%] tests/test_common.py::test_normalization_monotonic[alg1] PASSED [ 19%] tests/test_common.py::test_normalization_monotonic[alg2] PASSED [ 19%] tests/test_common.py::test_normalization_monotonic[alg3] PASSED [ 20%] tests/test_common.py::test_normalization_monotonic[alg4] PASSED [ 20%] tests/test_common.py::test_normalization_monotonic[alg5] PASSED [ 20%] tests/test_common.py::test_normalization_monotonic[alg6] PASSED [ 20%] tests/test_common.py::test_normalization_monotonic[alg7] FAILED [ 21%] tests/test_common.py::test_normalization_monotonic[alg8] PASSED [ 21%] tests/test_common.py::test_normalization_monotonic[alg9] PASSED [ 21%] tests/test_common.py::test_normalization_monotonic[alg10] PASSED [ 21%] tests/test_common.py::test_normalization_monotonic[alg11] PASSED [ 22%] tests/test_common.py::test_normalization_monotonic[alg12] PASSED [ 22%] tests/test_common.py::test_normalization_monotonic[alg13] PASSED [ 22%] tests/test_common.py::test_normalization_monotonic[alg14] PASSED [ 22%] tests/test_common.py::test_normalization_monotonic[alg15] PASSED [ 23%] tests/test_common.py::test_normalization_monotonic[alg16] PASSED [ 23%] tests/test_common.py::test_normalization_monotonic[alg17] PASSED [ 23%] tests/test_common.py::test_normalization_monotonic[alg18] PASSED [ 24%] tests/test_common.py::test_normalization_monotonic[alg19] PASSED [ 24%] tests/test_common.py::test_normalization_monotonic[alg20] PASSED [ 24%] tests/test_common.py::test_normalization_monotonic[alg21] FAILED [ 24%] tests/test_common.py::test_normalization_monotonic[alg22] FAILED [ 25%] tests/test_common.py::test_normalization_monotonic[alg23] FAILED [ 25%] tests/test_common.py::test_no_common_chars[alg0] PASSED [ 25%] tests/test_common.py::test_no_common_chars[alg1] PASSED [ 25%] tests/test_common.py::test_no_common_chars[alg2] PASSED [ 26%] tests/test_common.py::test_no_common_chars[alg3] PASSED [ 26%] tests/test_common.py::test_no_common_chars[alg4] PASSED [ 26%] tests/test_common.py::test_no_common_chars[alg5] PASSED [ 26%] tests/test_common.py::test_no_common_chars[alg6] PASSED [ 27%] tests/test_common.py::test_no_common_chars[alg7] FAILED [ 27%] tests/test_common.py::test_no_common_chars[alg8] PASSED [ 27%] tests/test_common.py::test_no_common_chars[alg9] PASSED [ 27%] tests/test_common.py::test_no_common_chars[alg10] PASSED [ 28%] tests/test_common.py::test_no_common_chars[alg11] PASSED [ 28%] tests/test_common.py::test_no_common_chars[alg12] PASSED [ 28%] tests/test_common.py::test_no_common_chars[alg13] PASSED [ 29%] tests/test_common.py::test_no_common_chars[alg14] PASSED [ 29%] tests/test_common.py::test_no_common_chars[alg15] PASSED [ 29%] tests/test_common.py::test_no_common_chars[alg16] PASSED [ 29%] tests/test_common.py::test_no_common_chars[alg17] PASSED [ 30%] tests/test_common.py::test_no_common_chars[alg18] PASSED [ 30%] tests/test_common.py::test_no_common_chars[alg19] PASSED [ 30%] tests/test_common.py::test_no_common_chars[alg20] PASSED [ 30%] tests/test_common.py::test_no_common_chars[alg21] FAILED [ 31%] tests/test_common.py::test_no_common_chars[alg22] FAILED [ 31%] tests/test_common.py::test_no_common_chars[alg23] PASSED [ 31%] tests/test_common.py::test_empty[alg0] PASSED [ 31%] tests/test_common.py::test_empty[alg1] PASSED [ 32%] tests/test_common.py::test_empty[alg2] PASSED [ 32%] tests/test_common.py::test_empty[alg3] PASSED [ 32%] tests/test_common.py::test_empty[alg4] PASSED [ 32%] tests/test_common.py::test_empty[alg5] PASSED [ 33%] tests/test_common.py::test_empty[alg6] PASSED [ 33%] tests/test_common.py::test_empty[alg7] FAILED [ 33%] tests/test_common.py::test_empty[alg8] PASSED [ 34%] tests/test_common.py::test_empty[alg9] PASSED [ 34%] tests/test_common.py::test_empty[alg10] PASSED [ 34%] tests/test_common.py::test_empty[alg11] PASSED [ 34%] tests/test_common.py::test_empty[alg12] PASSED [ 35%] tests/test_common.py::test_empty[alg13] PASSED [ 35%] tests/test_common.py::test_empty[alg14] PASSED [ 35%] tests/test_common.py::test_empty[alg15] PASSED [ 35%] tests/test_common.py::test_empty[alg16] PASSED [ 36%] tests/test_common.py::test_empty[alg17] PASSED [ 36%] tests/test_common.py::test_empty[alg18] PASSED [ 36%] tests/test_common.py::test_empty[alg19] PASSED [ 36%] tests/test_common.py::test_empty[alg20] PASSED [ 37%] tests/test_common.py::test_empty[alg21] FAILED [ 37%] tests/test_common.py::test_empty[alg22] PASSED [ 37%] tests/test_common.py::test_empty[alg23] PASSED [ 37%] tests/test_common.py::test_unequal_distance[alg0] PASSED [ 38%] tests/test_common.py::test_unequal_distance[alg1] PASSED [ 38%] tests/test_common.py::test_unequal_distance[alg2] PASSED [ 38%] tests/test_common.py::test_unequal_distance[alg3] PASSED [ 39%] tests/test_common.py::test_unequal_distance[alg4] PASSED [ 39%] tests/test_common.py::test_unequal_distance[alg5] PASSED [ 39%] tests/test_common.py::test_unequal_distance[alg6] PASSED [ 39%] tests/test_common.py::test_unequal_distance[alg7] FAILED [ 40%] tests/test_common.py::test_unequal_distance[alg8] PASSED [ 40%] tests/test_common.py::test_unequal_distance[alg9] PASSED [ 40%] tests/test_common.py::test_unequal_distance[alg10] PASSED [ 40%] tests/test_common.py::test_unequal_distance[alg11] PASSED [ 41%] tests/test_common.py::test_unequal_distance[alg12] PASSED [ 41%] tests/test_common.py::test_unequal_distance[alg13] PASSED [ 41%] tests/test_common.py::test_unequal_distance[alg14] PASSED [ 41%] tests/test_common.py::test_unequal_distance[alg15] PASSED [ 42%] tests/test_common.py::test_unequal_distance[alg16] PASSED [ 42%] tests/test_common.py::test_unequal_distance[alg17] PASSED [ 42%] tests/test_common.py::test_unequal_distance[alg18] PASSED [ 43%] tests/test_common.py::test_unequal_distance[alg19] PASSED [ 43%] tests/test_common.py::test_unequal_distance[alg20] PASSED [ 43%] tests/test_common.py::test_unequal_distance[alg21] FAILED [ 43%] tests/test_common.py::test_unequal_distance[alg22] PASSED [ 44%] tests/test_common.py::test_unequal_distance[alg23] PASSED [ 44%] tests/test_compression/test_arith_ncd.py::test_similarity[test-test-1] PASSED [ 44%] tests/test_compression/test_arith_ncd.py::test_similarity[test-nani-2.1666666666666665] PASSED [ 44%] tests/test_compression/test_arith_ncd.py::test_make_probs PASSED [ 45%] tests/test_compression/test_arith_ncd.py::test_arith_output PASSED [ 45%] tests/test_compression/test_bwtrle_ncd.py::test_similarity[test-test-0.6] PASSED [ 45%] tests/test_compression/test_bwtrle_ncd.py::test_similarity[test-nani-0.8] PASSED [ 45%] tests/test_compression/test_bz2_ncd.py::test_similarity[test-test-0.08] PASSED [ 46%] tests/test_compression/test_bz2_ncd.py::test_similarity[test-nani-0.16] PASSED [ 46%] tests/test_compression/test_common.py::test_monotonicity[alg0] PASSED [ 46%] tests/test_compression/test_common.py::test_monotonicity[alg1] PASSED [ 46%] tests/test_compression/test_common.py::test_monotonicity[alg2] PASSED [ 47%] tests/test_compression/test_common.py::test_monotonicity[alg3] PASSED [ 47%] tests/test_compression/test_common.py::test_monotonicity[alg4] PASSED [ 47%] tests/test_compression/test_common.py::test_monotonicity[alg5] PASSED [ 48%] tests/test_compression/test_common.py::test_monotonicity[alg6] PASSED [ 48%] tests/test_compression/test_common.py::test_simmetry[alg0] FAILED [ 48%] tests/test_compression/test_common.py::test_simmetry[alg1] PASSED [ 48%] tests/test_compression/test_common.py::test_simmetry[alg2] PASSED [ 49%] tests/test_compression/test_common.py::test_simmetry[alg3] PASSED [ 49%] tests/test_compression/test_common.py::test_simmetry[alg4] PASSED [ 49%] tests/test_compression/test_common.py::test_simmetry[alg5] PASSED [ 49%] tests/test_compression/test_common.py::test_simmetry[alg6] PASSED [ 50%] tests/test_compression/test_common.py::test_is_normalized[alg0] PASSED [ 50%] tests/test_compression/test_common.py::test_is_normalized[alg1] PASSED [ 50%] tests/test_compression/test_common.py::test_is_normalized[alg2] PASSED [ 50%] tests/test_compression/test_common.py::test_is_normalized[alg3] PASSED [ 51%] tests/test_compression/test_common.py::test_is_normalized[alg4] PASSED [ 51%] tests/test_compression/test_common.py::test_is_normalized[alg5] PASSED [ 51%] tests/test_compression/test_common.py::test_is_normalized[alg6] PASSED [ 51%] tests/test_compression/test_common.py::test_normalized_by_one[alg0] PASSED [ 52%] tests/test_compression/test_common.py::test_normalized_by_one[alg1] PASSED [ 52%] tests/test_compression/test_common.py::test_normalized_by_one[alg2] PASSED [ 52%] tests/test_compression/test_common.py::test_normalized_by_one[alg3] PASSED [ 53%] tests/test_compression/test_common.py::test_normalized_by_one[alg4] PASSED [ 53%] tests/test_compression/test_common.py::test_normalized_by_one[alg5] PASSED [ 53%] tests/test_compression/test_common.py::test_normalized_by_one[alg6] PASSED [ 53%] tests/test_compression/test_entropy_ncd.py::test_similarity[test-test-1] PASSED [ 54%] tests/test_compression/test_entropy_ncd.py::test_similarity[aaa-bbb-0] PASSED [ 54%] tests/test_compression/test_entropy_ncd.py::test_similarity[test-nani-0.6] PASSED [ 54%] tests/test_compression/test_entropy_ncd.py::test_simmetry_compressor PASSED [ 54%] tests/test_compression/test_entropy_ncd.py::test_idempotency_compressor PASSED [ 55%] tests/test_compression/test_entropy_ncd.py::test_monotonicity_compressor PASSED [ 55%] tests/test_compression/test_entropy_ncd.py::test_distributivity_compressor PASSED [ 55%] tests/test_compression/test_entropy_ncd.py::test_normalization_range PASSED [ 55%] tests/test_compression/test_sqrt_ncd.py::test_similarity[test-test-0.41421356237309503] PASSED [ 56%] tests/test_compression/test_sqrt_ncd.py::test_similarity[test-nani-1] PASSED [ 56%] tests/test_compression/test_sqrt_ncd.py::test_simmetry_compressor PASSED [ 56%] tests/test_compression/test_sqrt_ncd.py::test_idempotency_compressor PASSED [ 56%] tests/test_compression/test_sqrt_ncd.py::test_monotonicity_compressor PASSED [ 57%] tests/test_compression/test_sqrt_ncd.py::test_distributivity_compressor PASSED [ 57%] tests/test_compression/test_sqrt_ncd.py::test_normalization_range PASSED [ 57%] tests/test_edit/test_damerau_levenshtein.py::test_distance[test-text-1] PASSED [ 58%] tests/test_edit/test_damerau_levenshtein.py::test_distance[test-tset-1] PASSED [ 58%] tests/test_edit/test_damerau_levenshtein.py::test_distance[test-qwy-4] PASSED [ 58%] tests/test_edit/test_damerau_levenshtein.py::test_distance[test-testit-2] PASSED [ 58%] tests/test_edit/test_damerau_levenshtein.py::test_distance[test-tesst-1] PASSED [ 59%] tests/test_edit/test_damerau_levenshtein.py::test_distance[test-tet-1] PASSED [ 59%] tests/test_edit/test_damerau_levenshtein.py::test_distance[cat-hat-1] PASSED [ 59%] tests/test_edit/test_damerau_levenshtein.py::test_distance[Niall-Neil-3] PASSED [ 59%] tests/test_edit/test_damerau_levenshtein.py::test_distance[aluminum-Catalan-7] PASSED [ 60%] tests/test_edit/test_damerau_levenshtein.py::test_distance[ATCG-TAGC-2] PASSED [ 60%] tests/test_edit/test_damerau_levenshtein.py::test_distance[ab-ba-10] PASSED [ 60%] tests/test_edit/test_damerau_levenshtein.py::test_distance[ab-cde-3] PASSED [ 60%] tests/test_edit/test_damerau_levenshtein.py::test_distance[ab-ac-1] PASSED [ 61%] tests/test_edit/test_damerau_levenshtein.py::test_distance[ab-ba-11] PASSED [ 61%] tests/test_edit/test_damerau_levenshtein.py::test_distance[ab-bc-2] PASSED [ 61%] tests/test_edit/test_editex.py::test_distance[--0] PASSED [ 62%] tests/test_edit/test_editex.py::test_distance[nelson--12] PASSED [ 62%] tests/test_edit/test_editex.py::test_distance[-neilsen-14] PASSED [ 62%] tests/test_edit/test_editex.py::test_distance[ab-a-2] FAILED [ 62%] tests/test_edit/test_editex.py::test_distance[ab-c-4] FAILED [ 63%] tests/test_edit/test_editex.py::test_distance[ALIE-ALI-1] FAILED [ 63%] tests/test_edit/test_editex.py::test_distance[-MARTHA-12] PASSED [ 63%] tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params0-12] FAILED [ 63%] tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params1-14] FAILED [ 64%] tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params2-3] FAILED [ 64%] tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params3-4] FAILED [ 64%] tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params4-5] FAILED [ 64%] tests/test_edit/test_gotoh.py::test_distance_ident[GATTACA-GCATGCU-0] FAILED [ 65%] tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_05[GATTACA-GCATGCU-0] FAILED [ 65%] tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_05[AGACTAGTTAC-TGACGSTGC-1.5] FAILED [ 65%] tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_05[AGACTAGTTAC-CGAGACGT-1] FAILED [ 65%] tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT--15] FAILED [ 66%] tests/test_edit/test_hamming.py::test_distance[test-text-1] PASSED [ 66%] tests/test_edit/test_hamming.py::test_distance[test-tset-2] PASSED [ 66%] tests/test_edit/test_hamming.py::test_distance[test-qwe-4] PASSED [ 67%] tests/test_edit/test_hamming.py::test_distance[test-testit-2] PASSED [ 67%] tests/test_edit/test_hamming.py::test_distance[test-tesst-2] PASSED [ 67%] tests/test_edit/test_hamming.py::test_distance[test-tet-2] PASSED [ 67%] tests/test_edit/test_jaro.py::test_distance[hello-haloa-0.7333333333333334] PASSED [ 68%] tests/test_edit/test_jaro.py::test_distance[fly-ant-0.0] PASSED [ 68%] tests/test_edit/test_jaro.py::test_distance[frog-fog-0.9166666666666666] PASSED [ 68%] tests/test_edit/test_jaro.py::test_distance[ATCG-TAGC-0.8333333333333334] PASSED [ 68%] tests/test_edit/test_jaro.py::test_distance[MARTHA-MARHTA-0.944444444] PASSED [ 69%] tests/test_edit/test_jaro.py::test_distance[DWAYNE-DUANE-0.822222222] PASSED [ 69%] tests/test_edit/test_jaro.py::test_distance[DIXON-DICKSONX-0.7666666666666666] PASSED [ 69%] tests/test_edit/test_jaro.py::test_distance[Sint-Pietersplein 6, 9000 Gent-Test 10, 1010 Brussel-0.5182539682539683] PASSED [ 69%] tests/test_edit/test_jaro_winkler.py::test_distance[elephant-hippo-0.44166666666666665] PASSED [ 70%] tests/test_edit/test_jaro_winkler.py::test_distance[fly-ant-0.0] PASSED [ 70%] tests/test_edit/test_jaro_winkler.py::test_distance[frog-fog-0.916666666] FAILED [ 70%] tests/test_edit/test_jaro_winkler.py::test_distance[MARTHA-MARHTA-0.9611111111111111] PASSED [ 70%] tests/test_edit/test_jaro_winkler.py::test_distance[DWAYNE-DUANE-0.84] PASSED [ 71%] tests/test_edit/test_jaro_winkler.py::test_distance[DIXON-DICKSONX-0.8133333333333332] PASSED [ 71%] tests/test_edit/test_jaro_winkler.py::test_distance[duck donald-duck daisy-0.867272727272] PASSED [ 71%] tests/test_edit/test_levenshtein.py::test_distance[test-text-1] PASSED [ 72%] tests/test_edit/test_levenshtein.py::test_distance[test-tset-2] PASSED [ 72%] tests/test_edit/test_levenshtein.py::test_distance[test-qwe-4] PASSED [ 72%] tests/test_edit/test_levenshtein.py::test_distance[test-testit-2] PASSED [ 72%] tests/test_edit/test_levenshtein.py::test_distance[test-tesst-1] PASSED [ 73%] tests/test_edit/test_levenshtein.py::test_distance[test-tet-1] PASSED [ 73%] tests/test_edit/test_matrix.py::test_distance[--1] PASSED [ 73%] tests/test_edit/test_matrix.py::test_distance[-a-0] PASSED [ 73%] tests/test_edit/test_matrix.py::test_distance[abcd-abcd-1] PASSED [ 74%] tests/test_edit/test_matrix.py::test_distance[A-C--3] PASSED [ 74%] tests/test_edit/test_matrix.py::test_distance[G-G-7] PASSED [ 74%] tests/test_edit/test_matrix.py::test_distance[A-A-10] PASSED [ 74%] tests/test_edit/test_matrix.py::test_distance[T-A--4] PASSED [ 75%] tests/test_edit/test_matrix.py::test_distance[T-C-0] PASSED [ 75%] tests/test_edit/test_matrix.py::test_distance[A-G--1] PASSED [ 75%] tests/test_edit/test_matrix.py::test_distance[C-T-0] PASSED [ 75%] tests/test_edit/test_mlipns.py::test_distance[--1] PASSED [ 76%] tests/test_edit/test_mlipns.py::test_distance[a--0] PASSED [ 76%] tests/test_edit/test_mlipns.py::test_distance[-a-0] PASSED [ 76%] tests/test_edit/test_mlipns.py::test_distance[a-a-1] PASSED [ 77%] tests/test_edit/test_mlipns.py::test_distance[ab-a-1] PASSED [ 77%] tests/test_edit/test_mlipns.py::test_distance[abc-abc-1] PASSED [ 77%] tests/test_edit/test_mlipns.py::test_distance[abc-abcde-1] PASSED [ 77%] tests/test_edit/test_mlipns.py::test_distance[abcg-abcdeg-1] PASSED [ 78%] tests/test_edit/test_mlipns.py::test_distance[abcg-abcdefg-0] PASSED [ 78%] tests/test_edit/test_mlipns.py::test_distance[Tomato-Tamato-1] PASSED [ 78%] tests/test_edit/test_mlipns.py::test_distance[ato-Tam-1] PASSED [ 78%] tests/test_edit/test_needleman_wunsch.py::test_distance_matrix[AGACTAGTTAC-CGAGACGT-16] FAILED [ 79%] tests/test_edit/test_needleman_wunsch.py::test_distance_ident[GATTACA-GCATGCU-0] FAILED [ 79%] tests/test_edit/test_needleman_wunsch.py::test_distance_ident_with_gap_5[CGATATCAG-TGACGSTGC--5] FAILED [ 79%] tests/test_edit/test_needleman_wunsch.py::test_distance_ident_with_gap_5[AGACTAGTTAC-TGACGSTGC--7] FAILED [ 79%] tests/test_edit/test_needleman_wunsch.py::test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT--15] FAILED [ 80%] tests/test_edit/test_smith_waterman.py::test_distance_matrix[AGACTAGTTAC-CGAGACGT-26] FAILED [ 80%] tests/test_edit/test_smith_waterman.py::test_distance_ident[GATTACA-GCATGCU-0] FAILED [ 80%] tests/test_edit/test_smith_waterman.py::test_distance_ident_with_gap_5[CGATATCAG-TGACGSTGC-0] FAILED [ 81%] tests/test_edit/test_smith_waterman.py::test_distance_ident_with_gap_5[AGACTAGTTAC-TGACGSTGC-1] FAILED [ 81%] tests/test_edit/test_smith_waterman.py::test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT-0] FAILED [ 81%] tests/test_edit/test_strcmp95.py::test_distance[MARTHA-MARHTA-0.9611111111111111] PASSED [ 81%] tests/test_edit/test_strcmp95.py::test_distance[DWAYNE-DUANE-0.873] PASSED [ 82%] tests/test_edit/test_strcmp95.py::test_distance[DIXON-DICKSONX-0.839333333] PASSED [ 82%] tests/test_edit/test_strcmp95.py::test_distance[TEST-TEXT-0.9066666666666666] PASSED [ 82%] tests/test_phonetic/test_editex.py::test_distance[--0] PASSED [ 82%] tests/test_phonetic/test_editex.py::test_distance[nelson--12] PASSED [ 83%] tests/test_phonetic/test_editex.py::test_distance[-neilsen-14] PASSED [ 83%] tests/test_phonetic/test_editex.py::test_distance[ab-a-2] FAILED [ 83%] tests/test_phonetic/test_editex.py::test_distance[ab-c-4] FAILED [ 83%] tests/test_phonetic/test_editex.py::test_distance[nelson-neilsen-2] FAILED [ 84%] tests/test_phonetic/test_editex.py::test_distance[neilsen-nelson-2] FAILED [ 84%] tests/test_phonetic/test_editex.py::test_distance[niall-neal-1] FAILED [ 84%] tests/test_phonetic/test_editex.py::test_distance[neal-niall-1] FAILED [ 84%] tests/test_phonetic/test_editex.py::test_distance[niall-nihal-2] FAILED [ 85%] tests/test_phonetic/test_editex.py::test_distance[nihal-niall-2] FAILED [ 85%] tests/test_phonetic/test_editex.py::test_distance[neal-nihl-3] FAILED [ 85%] tests/test_phonetic/test_editex.py::test_distance[nihl-neal-3] FAILED [ 86%] tests/test_phonetic/test_editex.py::test_distance[cat-hat-2] FAILED [ 86%] tests/test_phonetic/test_editex.py::test_distance[Niall-Neil-2] FAILED [ 86%] tests/test_phonetic/test_editex.py::test_distance[aluminum-Catalan-12] FAILED [ 86%] tests/test_phonetic/test_editex.py::test_distance[ATCG-TAGC-6] FAILED [ 87%] tests/test_phonetic/test_editex.py::test_local[--0] PASSED [ 87%] tests/test_phonetic/test_editex.py::test_local[nelson--12] PASSED [ 87%] tests/test_phonetic/test_editex.py::test_local[-neilsen-14] PASSED [ 87%] tests/test_phonetic/test_editex.py::test_local[ab-a-2] FAILED [ 88%] tests/test_phonetic/test_editex.py::test_local[ab-c-2] FAILED [ 88%] tests/test_phonetic/test_editex.py::test_local[nelson-neilsen-2] FAILED [ 88%] tests/test_phonetic/test_editex.py::test_local[neilsen-nelson-2] FAILED [ 88%] tests/test_phonetic/test_editex.py::test_local[niall-neal-1] FAILED [ 89%] tests/test_phonetic/test_editex.py::test_local[neal-niall-1] FAILED [ 89%] tests/test_phonetic/test_editex.py::test_local[niall-nihal-2] FAILED [ 89%] tests/test_phonetic/test_editex.py::test_local[nihal-niall-2] FAILED [ 89%] tests/test_phonetic/test_editex.py::test_local[neal-nihl-3] FAILED [ 90%] tests/test_phonetic/test_editex.py::test_local[nihl-neal-3] FAILED [ 90%] tests/test_sequence/test_lcsseq.py::test_distance[ab-cd-] FAILED [ 90%] tests/test_sequence/test_lcsseq.py::test_distance[abcd-abcd-abcd] FAILED [ 91%] tests/test_sequence/test_lcsseq.py::test_distance[test-text-tet] FAILED [ 91%] tests/test_sequence/test_lcsseq.py::test_distance[thisisatest-testing123testing-tsitest] FAILED [ 91%] tests/test_sequence/test_lcsseq.py::test_distance[DIXON-DICKSONX-DION] FAILED [ 91%] tests/test_sequence/test_lcsseq.py::test_distance[random exponential-layer activation-ratia] FAILED [ 92%] tests/test_sequence/test_lcsseq.py::test_distance[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] FAILED [ 92%] tests/test_sequence/test_lcsseq.py::test_distance[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb-] FAILED [ 92%] tests/test_sequence/test_lcsseq.py::test_distance_multiseq[seqs0-] PASSED [ 92%] tests/test_sequence/test_lcsseq.py::test_distance_multiseq[seqs1-a] PASSED [ 93%] tests/test_sequence/test_lcsseq.py::test_distance_multiseq[seqs2-tet] PASSED [ 93%] tests/test_sequence/test_lcsstr.py::test_distance[ab-abcd-ab] PASSED [ 93%] tests/test_sequence/test_lcsstr.py::test_distance[abcd-ab-ab] PASSED [ 93%] tests/test_sequence/test_lcsstr.py::test_distance[abcd-bc-bc] PASSED [ 94%] tests/test_sequence/test_lcsstr.py::test_distance[bc-abcd-bc] PASSED [ 94%] tests/test_sequence/test_lcsstr.py::test_distance[abcd-cd-cd0] PASSED [ 94%] tests/test_sequence/test_lcsstr.py::test_distance[abcd-cd-cd1] PASSED [ 94%] tests/test_sequence/test_lcsstr.py::test_distance[abcd-ef-] PASSED [ 95%] tests/test_sequence/test_lcsstr.py::test_distance[ef-abcd-] PASSED [ 95%] tests/test_sequence/test_lcsstr.py::test_distance[MYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTEST-TEST-TEST] PASSED [ 95%] tests/test_sequence/test_lcsstr.py::test_distance[TEST-MYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTESTMYTEST-TEST] PASSED [ 96%] tests/test_token/test_bag.py::test_distance[qwe-qwe-0] PASSED [ 96%] tests/test_token/test_bag.py::test_distance[qwe-erty-3] PASSED [ 96%] tests/test_token/test_bag.py::test_distance[qwe-ewq-0] PASSED [ 96%] tests/test_token/test_bag.py::test_distance[qwe-rtys-4] PASSED [ 97%] tests/test_token/test_cosine.py::test_distance[test-text-0.75] PASSED [ 97%] tests/test_token/test_cosine.py::test_distance[nelson-neilsen-0.7715167498104595] PASSED [ 97%] tests/test_token/test_jaccard.py::test_distance[test-text-0.6] PASSED [ 97%] tests/test_token/test_jaccard.py::test_distance[nelson-neilsen-0.625] PASSED [ 98%] tests/test_token/test_jaccard.py::test_distance[decide-resize-0.3333333333333333] PASSED [ 98%] tests/test_token/test_monge_elkan.py::test_similarity[left0-right0-0.805] PASSED [ 98%] tests/test_token/test_monge_elkan.py::test_similarity[left1-right1-0.7866666666666667] PASSED [ 98%] tests/test_token/test_overlap.py::test_distance[test-text-0.75] PASSED [ 99%] tests/test_token/test_overlap.py::test_distance[testme-textthis-0.6666666666666666] PASSED [ 99%] tests/test_token/test_overlap.py::test_distance[nelson-neilsen-0.8333333333333334] PASSED [ 99%] tests/test_token/test_sorensen.py::test_distance[test-text-0.75] PASSED [100%] =================================== FAILURES =================================== ________________________ test_normalization_range[alg7] ________________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:55: in test_normalization_range assert 0 <= alg.normalized_distance(left, right) <= 1 textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_range( E left='', E right='0', E alg=LCSSeq({'qval': 1, 'test_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_range[alg21] ________________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:55: in test_normalization_range assert 0 <= alg.normalized_distance(left, right) <= 1 textdistance/algorithms/edit_based.py:372: in normalized_distance return (self.distance(*sequences) - minimum) / (maximum - minimum) textdistance/algorithms/edit_based.py:363: in distance return -1 * self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_range( E left='', E right='0', E alg=NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_range[alg22] ________________________ alg = SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:55: in test_normalization_range assert 0 <= alg.normalized_distance(left, right) <= 1 textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_range( E left='0', E right='1', E alg=SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_range[alg23] ________________________ alg = Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'Y', 'B', 'Z', 'F', 'A', 'N', 'G', 'D', 'P', 'M', 'T', 'V', 'E', 'Q', 'U', 'X', 'J', 'S', 'I', 'K', 'L', 'O', 'C', 'R'})}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:55: in test_normalization_range assert 0 <= alg.normalized_distance(left, right) <= 1 textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:30: in distance return self(*sequences) textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_range( E left='0', E right='1', E alg=Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'Y', 'B', 'Z', 'F', 'A', 'N', 'G', 'D', 'P', 'M', 'T', 'V', 'E', 'Q', 'U', 'X', 'J', 'S', 'I', 'K', 'L', 'O', 'C', 'R'})}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_by_one[alg7] ________________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:65: in test_normalization_by_one d = alg.normalized_distance(left, right) textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_by_one( E left='', E right='0', E alg=LCSSeq({'qval': 1, 'test_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_by_one[alg21] _______________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:65: in test_normalization_by_one d = alg.normalized_distance(left, right) textdistance/algorithms/edit_based.py:372: in normalized_distance return (self.distance(*sequences) - minimum) / (maximum - minimum) textdistance/algorithms/edit_based.py:363: in distance return -1 * self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_by_one( E left='', E right='0', E alg=NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_by_one[alg22] _______________________ alg = SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:65: in test_normalization_by_one d = alg.normalized_distance(left, right) textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_by_one( E left='0', E right='1', E alg=SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_normalization_by_one[alg23] _______________________ alg = Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'Y', 'B', 'Z', 'F', 'A', 'N', 'G', 'D', 'P', 'M', 'T', 'V', 'E', 'Q', 'U', 'X', 'J', 'S', 'I', 'K', 'L', 'O', 'C', 'R'})}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_common.py:60: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:65: in test_normalization_by_one d = alg.normalized_distance(left, right) textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:30: in distance return self(*sequences) textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_by_one( E left='0', E right='1', E alg=Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'Y', 'B', 'Z', 'F', 'A', 'N', 'G', 'D', 'P', 'M', 'T', 'V', 'E', 'Q', 'U', 'X', 'J', 'S', 'I', 'K', 'L', 'O', 'C', 'R'})}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError ________________________ test_normalization_same[alg7] _________________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given(text=hypothesis.strategies.text()) tests/test_common.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:75: in test_normalization_same assert alg.distance(text, text) == 0 textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_same( E text='', E alg=LCSSeq({'qval': 1, 'test_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError ________________________ test_normalization_same[alg21] ________________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given(text=hypothesis.strategies.text()) tests/test_common.py:71: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:73: in test_normalization_same assert alg.normalized_distance(text, text) == 0 textdistance/algorithms/edit_based.py:372: in normalized_distance return (self.distance(*sequences) - minimum) / (maximum - minimum) textdistance/algorithms/edit_based.py:363: in distance return -1 * self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_same( E text='0', E alg=NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError ______________________ test_normalization_monotonic[alg7] ______________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(min_size=1), right=hypothesis.strategies.text(min_size=1), ) tests/test_common.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:85: in test_normalization_monotonic nd = alg.normalized_distance(left, right) textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_monotonic( E left='0', E right='0', E alg=LCSSeq({'qval': 1, 'test_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _____________________ test_normalization_monotonic[alg21] ______________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(min_size=1), right=hypothesis.strategies.text(min_size=1), ) tests/test_common.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:85: in test_normalization_monotonic nd = alg.normalized_distance(left, right) textdistance/algorithms/edit_based.py:372: in normalized_distance return (self.distance(*sequences) - minimum) / (maximum - minimum) textdistance/algorithms/edit_based.py:363: in distance return -1 * self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_monotonic( E left='0', E right='0', E alg=NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _____________________ test_normalization_monotonic[alg22] ______________________ alg = SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(min_size=1), right=hypothesis.strategies.text(min_size=1), ) tests/test_common.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:85: in test_normalization_monotonic nd = alg.normalized_distance(left, right) textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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 E Falsifying example: test_normalization_monotonic( E left='0', E right='1', E alg=SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError _____________________ test_normalization_monotonic[alg23] ______________________ alg = Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'Y', 'B', 'Z', 'F', 'A', 'N', 'G', 'D', 'P', 'M', 'T', 'V', 'E', 'Q', 'U', 'X', 'J', 'S', 'I', 'K', 'L', 'O', 'C', 'R'})}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(min_size=1), right=hypothesis.strategies.text(min_size=1), ) tests/test_common.py:80: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_common.py:85: in test_normalization_monotonic nd = alg.normalized_distance(left, right) textdistance/algorithms/base.py:45: in normalized_distance return self.distance(*sequences) / maximum textdistance/algorithms/base.py:30: in distance return self(*sequences) textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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 E Falsifying example: test_normalization_monotonic( E left='0', E right='1', E alg=Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'Y', 'B', 'Z', 'F', 'A', 'N', 'G', 'D', 'P', 'M', 'T', 'V', 'E', 'Q', 'U', 'X', 'J', 'S', 'I', 'K', 'L', 'O', 'C', 'R'})}), E ) /usr/lib64/python3.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_no_common_chars[alg7] __________________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_no_common_chars(alg): if alg is textdistance.editex: return > assert alg.similarity('spam', 'qwer') == 0 tests/test_common.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_no_common_chars[alg21] __________________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_no_common_chars(alg): if alg is textdistance.editex: return > assert alg.similarity('spam', 'qwer') == 0 tests/test_common.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_no_common_chars[alg22] __________________________ alg = SmithWaterman({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_no_common_chars(alg): if alg is textdistance.editex: return > assert alg.similarity('spam', 'qwer') == 0 tests/test_common.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError _______________________________ test_empty[alg7] _______________________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_empty(alg): > assert alg.distance('', '') == 0 tests/test_common.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________________________ test_empty[alg21] _______________________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_empty(alg): > assert alg.distance('', '') == 0 tests/test_common.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:363: in distance return -1 * self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_unequal_distance[alg7] __________________________ alg = LCSSeq({'qval': 1, 'test_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_unequal_distance(alg): if alg.maximum('', 'qwertyui'): > assert alg.distance('', 'qwertyui') > 0 tests/test_common.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/base.py:173: in distance return self.maximum(*sequences) - self.similarity(*sequences) textdistance/algorithms/sequence_based.py:89: in similarity return len(self(*sequences)) textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_unequal_distance[alg21] _________________________ alg = NeedlemanWunsch({'qval': 1, 'gap_cost': 1.0, 'sim_func': , 'external': True}) @pytest.mark.parametrize('alg', ALGS) def test_unequal_distance(alg): if alg.maximum('', 'qwertyui'): > assert alg.distance('', 'qwertyui') > 0 tests/test_common.py:107: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:363: in distance return -1 * self.similarity(*sequences) textdistance/algorithms/base.py:176: in similarity return self(*sequences) textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError _____________________________ test_simmetry[alg0] ______________________________ self = data = ConjectureData(INTERESTING, 61 bytes, frozen) def _execute_once_for_engine(self, data): """Wrapper around ``execute_once`` that intercepts test failure exceptions and single-test control exceptions, and turns them into appropriate method calls to `data` instead. This allows the engine to assume that any exception other than ``StopTest`` must be a fatal error, and should stop the entire engine. """ try: trace = frozenset() if ( self.failed_normally and not self.failed_due_to_deadline and Phase.shrink in self.settings.phases and Phase.explain in self.settings.phases and sys.gettrace() is None and not PYPY ): # pragma: no cover # This is in fact covered by our *non-coverage* tests, but due to the # settrace() contention *not* by our coverage tests. Ah well. tracer = Tracer() try: sys.settrace(tracer.trace) result = self.execute_once(data) if data.status == Status.VALID: self.explain_traces[None].add(frozenset(tracer.branches)) finally: sys.settrace(None) trace = frozenset(tracer.branches) else: > result = self.execute_once(data) /usr/lib/python3.11/site-packages/hypothesis/core.py:879: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = ConjectureData(INTERESTING, 61 bytes, frozen), print_example = False is_final = False, expected_failure = None def execute_once( self, data, print_example=False, is_final=False, expected_failure=None ): """Run the test function once, using ``data`` as input. If the test raises an exception, it will propagate through to the caller of this method. Depending on its type, this could represent an ordinary test failure, or a fatal error, or a control exception. If this method returns normally, the test might have passed, or it might have placed ``data`` in an unsuccessful state and then swallowed the corresponding control exception. """ self.ever_executed = True data.is_find = self.is_find text_repr = None if self.settings.deadline is None: test = self.test else: @proxies(self.test) def test(*args, **kwargs): self.__test_runtime = None initial_draws = len(data.draw_times) start = time.perf_counter() result = self.test(*args, **kwargs) finish = time.perf_counter() internal_draw_time = sum(data.draw_times[initial_draws:]) runtime = datetime.timedelta( seconds=finish - start - internal_draw_time ) self.__test_runtime = runtime current_deadline = self.settings.deadline if not is_final: current_deadline = (current_deadline // 4) * 5 if runtime >= current_deadline: raise DeadlineExceeded(runtime, self.settings.deadline) return result def run(data): # Set up dynamic context needed by a single test run. with local_settings(self.settings): with deterministic_PRNG(): with BuildContext(data, is_final=is_final): # Generate all arguments to the test function. args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: nonlocal text_repr text_repr = repr_call(test, args, kwargs) if print_example or current_verbosity() >= Verbosity.verbose: output = StringIO() printer = RepresentationPrinter(output) if print_example: printer.text("Falsifying example:") else: printer.text("Trying example:") if self.print_given_args: printer.text(" ") printer.repr_call( test.__name__, args, kwargs, force_split=True, ) report(printer.getvalue()) return test(*args, **kwargs) # Run the test function once, via the executor hook. # In most cases this will delegate straight to `run(data)`. > result = self.test_runner(data, run) /usr/lib/python3.11/site-packages/hypothesis/core.py:818: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = ConjectureData(INTERESTING, 61 bytes, frozen) function = .run at 0xffffffa7cebec0> def default_new_style_executor(data, function): > return function(data) /usr/lib/python3.11/site-packages/hypothesis/executors.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ data = ConjectureData(INTERESTING, 61 bytes, frozen) def run(data): # Set up dynamic context needed by a single test run. with local_settings(self.settings): with deterministic_PRNG(): with BuildContext(data, is_final=is_final): # Generate all arguments to the test function. args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: nonlocal text_repr text_repr = repr_call(test, args, kwargs) if print_example or current_verbosity() >= Verbosity.verbose: output = StringIO() printer = RepresentationPrinter(output) if print_example: printer.text("Falsifying example:") else: printer.text("Trying example:") if self.print_given_args: printer.text(" ") printer.repr_call( test.__name__, args, kwargs, force_split=True, ) report(printer.getvalue()) > return test(*args, **kwargs) /usr/lib/python3.11/site-packages/hypothesis/core.py:814: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ left = 'оT', right = '1FN0s\x8e\x992ÃÒ90\U000418e3𐨀' alg = ArithNCD({'base': 2, 'terminator': None, 'qval': 1}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_compression/test_common.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = ('оT', '1FN0s\x8e\x992ÃÒ90\U000418e3𐨀', ArithNCD({'base': 2, 'terminator': None, 'qval': 1})) kwargs = {}, initial_draws = 1, start = 1408149.219716118, result = None finish = 1408149.492082932, internal_draw_time = 0 runtime = datetime.timedelta(microseconds=272367) current_deadline = datetime.timedelta(microseconds=250000) @proxies(self.test) def test(*args, **kwargs): self.__test_runtime = None initial_draws = len(data.draw_times) start = time.perf_counter() result = self.test(*args, **kwargs) finish = time.perf_counter() internal_draw_time = sum(data.draw_times[initial_draws:]) runtime = datetime.timedelta( seconds=finish - start - internal_draw_time ) self.__test_runtime = runtime current_deadline = self.settings.deadline if not is_final: current_deadline = (current_deadline // 4) * 5 if runtime >= current_deadline: > raise DeadlineExceeded(runtime, self.settings.deadline) E hypothesis.errors.DeadlineExceeded: Test took 272.37ms, which exceeds the deadline of 200.00ms /usr/lib/python3.11/site-packages/hypothesis/core.py:781: DeadlineExceeded The above exception was the direct cause of the following exception: alg = ArithNCD({'base': 2, 'terminator': None, 'qval': 1}) @pytest.mark.parametrize('alg', ALGS) > @hypothesis.given( left=hypothesis.strategies.text(), right=hypothesis.strategies.text(), ) tests/test_compression/test_common.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = data = ConjectureData(VALID, 61 bytes, frozen), print_example = True is_final = True expected_failure = (DeadlineExceeded('Test took 272.37ms, which exceeds the deadline of 200.00ms'), "args = ('оT', '1FN0s\\x8e\\x992ÃÒ90...hich exceeds the deadline of 200.00ms\n\n/usr/lib/python3.11/site-packages/hypothesis/core.py:781: DeadlineExceeded\n") def execute_once( self, data, print_example=False, is_final=False, expected_failure=None ): """Run the test function once, using ``data`` as input. If the test raises an exception, it will propagate through to the caller of this method. Depending on its type, this could represent an ordinary test failure, or a fatal error, or a control exception. If this method returns normally, the test might have passed, or it might have placed ``data`` in an unsuccessful state and then swallowed the corresponding control exception. """ self.ever_executed = True data.is_find = self.is_find text_repr = None if self.settings.deadline is None: test = self.test else: @proxies(self.test) def test(*args, **kwargs): self.__test_runtime = None initial_draws = len(data.draw_times) start = time.perf_counter() result = self.test(*args, **kwargs) finish = time.perf_counter() internal_draw_time = sum(data.draw_times[initial_draws:]) runtime = datetime.timedelta( seconds=finish - start - internal_draw_time ) self.__test_runtime = runtime current_deadline = self.settings.deadline if not is_final: current_deadline = (current_deadline // 4) * 5 if runtime >= current_deadline: raise DeadlineExceeded(runtime, self.settings.deadline) return result def run(data): # Set up dynamic context needed by a single test run. with local_settings(self.settings): with deterministic_PRNG(): with BuildContext(data, is_final=is_final): # Generate all arguments to the test function. args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: nonlocal text_repr text_repr = repr_call(test, args, kwargs) if print_example or current_verbosity() >= Verbosity.verbose: output = StringIO() printer = RepresentationPrinter(output) if print_example: printer.text("Falsifying example:") else: printer.text("Trying example:") if self.print_given_args: printer.text(" ") printer.repr_call( test.__name__, args, kwargs, force_split=True, ) report(printer.getvalue()) return test(*args, **kwargs) # Run the test function once, via the executor hook. # In most cases this will delegate straight to `run(data)`. result = self.test_runner(data, run) # If a failure was expected, it should have been raised already, so # instead raise an appropriate diagnostic error. if expected_failure is not None: exception, traceback = expected_failure if ( isinstance(exception, DeadlineExceeded) and self.__test_runtime is not None ): report( "Unreliable test timings! On an initial run, this " "test took %.2fms, which exceeded the deadline of " "%.2fms, but on a subsequent run it took %.2f ms, " "which did not. If you expect this sort of " "variability in your test timings, consider turning " "deadlines off for this test by setting deadline=None." % ( exception.runtime.total_seconds() * 1000, self.settings.deadline.total_seconds() * 1000, self.__test_runtime.total_seconds() * 1000, ) ) else: report("Failed to reproduce exception. Expected: \n" + traceback) > raise Flaky( f"Hypothesis {text_repr} produces unreliable results: " "Falsified on the first call but did not on a subsequent one" ) from exception E hypothesis.errors.Flaky: Hypothesis test_simmetry(left='оT', right='1FN0s\x8e\x992ÃÒ90\U000418e3𐨀', alg=ArithNCD({'base': 2, 'terminator': None, 'qval': 1})) produces unreliable results: Falsified on the first call but did not on a subsequent one E Falsifying example: test_simmetry( E left='оT', E right='1FN0s\x8e\x992ÃÒ90\U000418e3𐨀', E alg=ArithNCD({'base': 2, 'terminator': None, 'qval': 1}), E ) E Unreliable test timings! On an initial run, this test took 272.37ms, which exceeded the deadline of 200.00ms, but on a subsequent run it took 175.76 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None. /usr/lib/python3.11/site-packages/hypothesis/core.py:843: Flaky ---------------------------------- Hypothesis ---------------------------------- WARNING: Hypothesis has spent more than five minutes working to shrink a failing example, and stopped because it is making very slow progress. When you re-run your tests, shrinking will resume and may take this long before aborting again. PLEASE REPORT THIS if you can provide a reproducing example, so that we can improve shrinking performance for everyone. ____________________________ test_distance[ab-a-2] _____________________________ left = 'ab', right = 'a', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 4), ('ALIE', 'ALI', 1), ('', 'MARTHA', 12), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_edit/test_editex.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________________ test_distance[ab-c-4] _____________________________ left = 'ab', right = 'c', expected = 4 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 4), ('ALIE', 'ALI', 1), ('', 'MARTHA', 12), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_edit/test_editex.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_distance[ALIE-ALI-1] ___________________________ left = 'ALIE', right = 'ALI', expected = 1 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 4), ('ALIE', 'ALI', 1), ('', 'MARTHA', 12), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_edit/test_editex.py:21: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _____________ test_distance_with_params[MARTHA-MARHTA-params0-12] ______________ left = 'MARTHA', right = 'MARHTA', params = {'match_cost': 2}, expected = 12 @pytest.mark.parametrize('left, right, params, expected', [ ('MARTHA', 'MARHTA', dict(match_cost=2), 12), ('MARTHA', 'MARHTA', dict(match_cost=4), 14), ('MARTHA', 'MARHTA', dict(group_cost=1, local=True), 3), ('MARTHA', 'MARHTA', dict(group_cost=2, local=True), 4), ('MARTHA', 'MARHTA', dict(mismatch_cost=4, local=True), 5), ]) def test_distance_with_params(left, right, params, expected): > actual = ALG(external=False, **params)(left, right) tests/test_edit/test_editex.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _____________ test_distance_with_params[MARTHA-MARHTA-params1-14] ______________ left = 'MARTHA', right = 'MARHTA', params = {'match_cost': 4}, expected = 14 @pytest.mark.parametrize('left, right, params, expected', [ ('MARTHA', 'MARHTA', dict(match_cost=2), 12), ('MARTHA', 'MARHTA', dict(match_cost=4), 14), ('MARTHA', 'MARHTA', dict(group_cost=1, local=True), 3), ('MARTHA', 'MARHTA', dict(group_cost=2, local=True), 4), ('MARTHA', 'MARHTA', dict(mismatch_cost=4, local=True), 5), ]) def test_distance_with_params(left, right, params, expected): > actual = ALG(external=False, **params)(left, right) tests/test_edit/test_editex.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________ test_distance_with_params[MARTHA-MARHTA-params2-3] ______________ left = 'MARTHA', right = 'MARHTA', params = {'group_cost': 1, 'local': True} expected = 3 @pytest.mark.parametrize('left, right, params, expected', [ ('MARTHA', 'MARHTA', dict(match_cost=2), 12), ('MARTHA', 'MARHTA', dict(match_cost=4), 14), ('MARTHA', 'MARHTA', dict(group_cost=1, local=True), 3), ('MARTHA', 'MARHTA', dict(group_cost=2, local=True), 4), ('MARTHA', 'MARHTA', dict(mismatch_cost=4, local=True), 5), ]) def test_distance_with_params(left, right, params, expected): > actual = ALG(external=False, **params)(left, right) tests/test_edit/test_editex.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________ test_distance_with_params[MARTHA-MARHTA-params3-4] ______________ left = 'MARTHA', right = 'MARHTA', params = {'group_cost': 2, 'local': True} expected = 4 @pytest.mark.parametrize('left, right, params, expected', [ ('MARTHA', 'MARHTA', dict(match_cost=2), 12), ('MARTHA', 'MARHTA', dict(match_cost=4), 14), ('MARTHA', 'MARHTA', dict(group_cost=1, local=True), 3), ('MARTHA', 'MARHTA', dict(group_cost=2, local=True), 4), ('MARTHA', 'MARHTA', dict(mismatch_cost=4, local=True), 5), ]) def test_distance_with_params(left, right, params, expected): > actual = ALG(external=False, **params)(left, right) tests/test_edit/test_editex.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________ test_distance_with_params[MARTHA-MARHTA-params4-5] ______________ left = 'MARTHA', right = 'MARHTA', params = {'local': True, 'mismatch_cost': 4} expected = 5 @pytest.mark.parametrize('left, right, params, expected', [ ('MARTHA', 'MARHTA', dict(match_cost=2), 12), ('MARTHA', 'MARHTA', dict(match_cost=4), 14), ('MARTHA', 'MARHTA', dict(group_cost=1, local=True), 3), ('MARTHA', 'MARHTA', dict(group_cost=2, local=True), 4), ('MARTHA', 'MARHTA', dict(mismatch_cost=4, local=True), 5), ]) def test_distance_with_params(left, right, params, expected): > actual = ALG(external=False, **params)(left, right) tests/test_edit/test_editex.py:36: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________ test_distance_ident[GATTACA-GCATGCU-0] ____________________ left = 'GATTACA', right = 'GCATGCU', expected = 0 @pytest.mark.parametrize('left, right, expected', [ ('GATTACA', 'GCATGCU', 0), ]) def test_distance_ident(left, right, expected): > actual = ALG(gap_open=1, gap_ext=1, sim_func=sim_ident)(left, right) tests/test_edit/test_gotoh.py:35: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:494: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.float) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________ test_distance_ident_with_gap_05[GATTACA-GCATGCU-0] ______________ left = 'GATTACA', right = 'GCATGCU', expected = 0 @pytest.mark.parametrize('left, right, expected', [ ('GATTACA', 'GCATGCU', 0), ('AGACTAGTTAC', 'TGACGSTGC', 1.5), ('AGACTAGTTAC', 'CGAGACGT', 1), ]) def test_distance_ident_with_gap_05(left, right, expected): > actual = ALG(gap_open=1, gap_ext=.5, sim_func=sim_ident)(left, right) tests/test_edit/test_gotoh.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:494: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.float) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError __________ test_distance_ident_with_gap_05[AGACTAGTTAC-TGACGSTGC-1.5] __________ left = 'AGACTAGTTAC', right = 'TGACGSTGC', expected = 1.5 @pytest.mark.parametrize('left, right, expected', [ ('GATTACA', 'GCATGCU', 0), ('AGACTAGTTAC', 'TGACGSTGC', 1.5), ('AGACTAGTTAC', 'CGAGACGT', 1), ]) def test_distance_ident_with_gap_05(left, right, expected): > actual = ALG(gap_open=1, gap_ext=.5, sim_func=sim_ident)(left, right) tests/test_edit/test_gotoh.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:494: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.float) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________ test_distance_ident_with_gap_05[AGACTAGTTAC-CGAGACGT-1] ____________ left = 'AGACTAGTTAC', right = 'CGAGACGT', expected = 1 @pytest.mark.parametrize('left, right, expected', [ ('GATTACA', 'GCATGCU', 0), ('AGACTAGTTAC', 'TGACGSTGC', 1.5), ('AGACTAGTTAC', 'CGAGACGT', 1), ]) def test_distance_ident_with_gap_05(left, right, expected): > actual = ALG(gap_open=1, gap_ext=.5, sim_func=sim_ident)(left, right) tests/test_edit/test_gotoh.py:45: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:494: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.float) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________ test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT--15] ___________ left = 'AGACTAGTTAC', right = 'CGAGACGT', expected = -15 @pytest.mark.parametrize('left, right, expected', [ ('AGACTAGTTAC', 'CGAGACGT', -15), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_open=5, gap_ext=5, sim_func=sim_ident)(left, right) tests/test_edit/test_gotoh.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:494: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.float) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError _____________________ test_distance[frog-fog-0.916666666] ______________________ left = 'frog', right = 'fog', expected = 0.916666666 @pytest.mark.parametrize('left, right, expected', [ ('elephant', 'hippo', 0.44166666666666665), ('fly', 'ant', 0.0), ('frog', 'fog', 0.916666666), ('MARTHA', 'MARHTA', 0.9611111111111111), ('DWAYNE', 'DUANE', 0.84), ('DIXON', 'DICKSONX', 0.8133333333333332), # https://github.com/life4/textdistance/issues/39 ('duck donald', 'duck daisy', 0.867272727272), ]) def test_distance(left, right, expected): actual = ALG(winklerize=True, external=False)(left, right) assert isclose(actual, expected) actual = ALG(winklerize=True, external=True)(left, right) > assert isclose(actual, expected) E assert False E + where False = isclose(0.9249999999999999, 0.916666666) tests/test_edit/test_jaro_winkler.py:30: AssertionError ________________ test_distance_matrix[AGACTAGTTAC-CGAGACGT-16] _________________ left = 'AGACTAGTTAC', right = 'CGAGACGT', expected = 16 @pytest.mark.parametrize('left, right, expected', [ ('AGACTAGTTAC', 'CGAGACGT', 16), ]) def test_distance_matrix(left, right, expected): sim_matrix = textdistance.Matrix(NW_MATRIX, symmetric=True) > actual = ALG(gap_cost=5, sim_func=sim_matrix)(left, right) tests/test_edit/test_needleman_wunsch.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________ test_distance_ident[GATTACA-GCATGCU-0] ____________________ left = 'GATTACA', right = 'GCATGCU', expected = 0 @pytest.mark.parametrize('left, right, expected', [ ('GATTACA', 'GCATGCU', 0), ]) def test_distance_ident(left, right, expected): > actual = ALG(sim_func=sim_ident)(left, right) tests/test_edit/test_needleman_wunsch.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________ test_distance_ident_with_gap_5[CGATATCAG-TGACGSTGC--5] ____________ left = 'CGATATCAG', right = 'TGACGSTGC', expected = -5 @pytest.mark.parametrize('left, right, expected', [ ('CGATATCAG', 'TGACGSTGC', -5), ('AGACTAGTTAC', 'TGACGSTGC', -7), ('AGACTAGTTAC', 'CGAGACGT', -15), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_cost=5, sim_func=sim_ident)(left, right) tests/test_edit/test_needleman_wunsch.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________ test_distance_ident_with_gap_5[AGACTAGTTAC-TGACGSTGC--7] ___________ left = 'AGACTAGTTAC', right = 'TGACGSTGC', expected = -7 @pytest.mark.parametrize('left, right, expected', [ ('CGATATCAG', 'TGACGSTGC', -5), ('AGACTAGTTAC', 'TGACGSTGC', -7), ('AGACTAGTTAC', 'CGAGACGT', -15), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_cost=5, sim_func=sim_ident)(left, right) tests/test_edit/test_needleman_wunsch.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________ test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT--15] ___________ left = 'AGACTAGTTAC', right = 'CGAGACGT', expected = -15 @pytest.mark.parametrize('left, right, expected', [ ('CGATATCAG', 'TGACGSTGC', -5), ('AGACTAGTTAC', 'TGACGSTGC', -7), ('AGACTAGTTAC', 'CGAGACGT', -15), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_cost=5, sim_func=sim_ident)(left, right) tests/test_edit/test_needleman_wunsch.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:395: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ________________ test_distance_matrix[AGACTAGTTAC-CGAGACGT-26] _________________ left = 'AGACTAGTTAC', right = 'CGAGACGT', expected = 26 @pytest.mark.parametrize('left, right, expected', [ ('AGACTAGTTAC', 'CGAGACGT', 26), ]) def test_distance_matrix(left, right, expected): sim_matrix = textdistance.Matrix(NW_MATRIX, symmetric=True) > actual = ALG(gap_cost=5, sim_func=sim_matrix)(left, right) tests/test_edit/test_smith_waterman.py:29: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________ test_distance_ident[GATTACA-GCATGCU-0] ____________________ left = 'GATTACA', right = 'GCATGCU', expected = 0 @pytest.mark.parametrize('left, right, expected', [ ('GATTACA', 'GCATGCU', 0), ]) def test_distance_ident(left, right, expected): > actual = ALG(sim_func=sim_ident)(left, right) tests/test_edit/test_smith_waterman.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________ test_distance_ident_with_gap_5[CGATATCAG-TGACGSTGC-0] _____________ left = 'CGATATCAG', right = 'TGACGSTGC', expected = 0 @pytest.mark.parametrize('left, right, expected', [ ('CGATATCAG', 'TGACGSTGC', 0), ('AGACTAGTTAC', 'TGACGSTGC', 1), ('AGACTAGTTAC', 'CGAGACGT', 0), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_cost=5, sim_func=sim_ident)(left, right) tests/test_edit/test_smith_waterman.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________ test_distance_ident_with_gap_5[AGACTAGTTAC-TGACGSTGC-1] ____________ left = 'AGACTAGTTAC', right = 'TGACGSTGC', expected = 1 @pytest.mark.parametrize('left, right, expected', [ ('CGATATCAG', 'TGACGSTGC', 0), ('AGACTAGTTAC', 'TGACGSTGC', 1), ('AGACTAGTTAC', 'CGAGACGT', 0), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_cost=5, sim_func=sim_ident)(left, right) tests/test_edit/test_smith_waterman.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________ test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT-0] ____________ left = 'AGACTAGTTAC', right = 'CGAGACGT', expected = 0 @pytest.mark.parametrize('left, right, expected', [ ('CGATATCAG', 'TGACGSTGC', 0), ('AGACTAGTTAC', 'TGACGSTGC', 1), ('AGACTAGTTAC', 'CGAGACGT', 0), ]) def test_distance_ident_with_gap_5(left, right, expected): > actual = ALG(gap_cost=5, sim_func=sim_ident)(left, right) tests/test_edit/test_smith_waterman.py:54: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/edit_based.py:445: in __call__ dtype=numpy.float, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'float' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'float'. E `np.float` was a deprecated alias for the builtin `float`. To avoid this error in existing code, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________________ test_distance[ab-a-2] _____________________________ left = 'ab', right = 'a', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________________ test_distance[ab-c-4] _____________________________ left = 'ab', right = 'c', expected = 4 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_distance[nelson-neilsen-2] ________________________ left = 'nelson', right = 'neilsen', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _______________________ test_distance[neilsen-nelson-2] ________________________ left = 'neilsen', right = 'nelson', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_distance[niall-neal-1] __________________________ left = 'niall', right = 'neal', expected = 1 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_distance[neal-niall-1] __________________________ left = 'neal', right = 'niall', expected = 1 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_distance[niall-nihal-2] _________________________ left = 'niall', right = 'nihal', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_distance[nihal-niall-2] _________________________ left = 'nihal', right = 'niall', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_distance[neal-nihl-3] __________________________ left = 'neal', right = 'nihl', expected = 3 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_distance[nihl-neal-3] __________________________ left = 'nihl', right = 'neal', expected = 3 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________________________ test_distance[cat-hat-2] ___________________________ left = 'cat', right = 'hat', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_distance[Niall-Neil-2] __________________________ left = 'Niall', right = 'Neil', expected = 2 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________________ test_distance[aluminum-Catalan-12] ______________________ left = 'aluminum', right = 'Catalan', expected = 12 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_distance[ATCG-TAGC-6] __________________________ left = 'ATCG', right = 'TAGC', expected = 6 @pytest.mark.parametrize('left, right, expected', [ # https://github.com/chrislit/abydos/blob/master/tests/distance/test_distance_editex.py ('', '', 0), ('nelson', '', len('nelson') * 2), ('', 'neilsen', len('neilsen') * 2), ('ab', 'a', 2), ('ab', 'c', 4), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), # https://anhaidgroup.github.io/py_stringmatching/v0.3.x/Editex.html ('cat', 'hat', 2), ('Niall', 'Neil', 2), ('aluminum', 'Catalan', 12), ('ATCG', 'TAGC', 6), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_phonetic/test_editex.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________________________ test_local[ab-a-2] ______________________________ left = 'ab', right = 'a', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________________________ test_local[ab-c-2] ______________________________ left = 'ab', right = 'c', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_local[nelson-neilsen-2] _________________________ left = 'nelson', right = 'neilsen', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_local[neilsen-nelson-2] _________________________ left = 'neilsen', right = 'nelson', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________________________ test_local[niall-neal-1] ___________________________ left = 'niall', right = 'neal', expected = 1 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________________________ test_local[neal-niall-1] ___________________________ left = 'neal', right = 'niall', expected = 1 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_local[niall-nihal-2] ___________________________ left = 'niall', right = 'nihal', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError __________________________ test_local[nihal-niall-2] ___________________________ left = 'nihal', right = 'niall', expected = 2 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________________________ test_local[neal-nihl-3] ____________________________ left = 'neal', right = 'nihl', expected = 3 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________________________ test_local[nihl-neal-3] ____________________________ left = 'nihl', right = 'neal', expected = 3 @pytest.mark.parametrize('left, right, expected', [ ('', '', 0), ('nelson', '', 12), ('', 'neilsen', 14), ('ab', 'a', 2), ('ab', 'c', 2), ('nelson', 'neilsen', 2), ('neilsen', 'nelson', 2), ('niall', 'neal', 1), ('neal', 'niall', 1), ('niall', 'nihal', 2), ('nihal', 'niall', 2), ('neal', 'nihl', 3), ('nihl', 'neal', 3), ]) def test_local(left, right, expected): > actual = ALG(external=False, local=True)(left, right) tests/test_phonetic/test_editex.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/phonetic.py:145: in __call__ d_mat = numpy.zeros((len_s1 + 1, len_s2 + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ____________________________ test_distance[ab-cd-] _____________________________ left = 'ab', right = 'cd', expected = '' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ________________________ test_distance[abcd-abcd-abcd] _________________________ left = 'abcd', right = 'abcd', expected = 'abcd' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _________________________ test_distance[test-text-tet] _________________________ left = 'test', right = 'text', expected = 'tet' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _____________ test_distance[thisisatest-testing123testing-tsitest] _____________ left = 'thisisatest', right = 'testing123testing', expected = 'tsitest' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ______________________ test_distance[DIXON-DICKSONX-DION] ______________________ left = 'DIXON', right = 'DICKSONX', expected = 'DION' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError ___________ test_distance[random exponential-layer activation-ratia] ___________ left = 'random exponential', right = 'layer activation', expected = 'ratia' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _ test_distance[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] _ left = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' right = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' expected = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError _ test_distance[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb-] _ left = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' right = 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb' expected = '' @pytest.mark.parametrize('left, right, expected', [ ('ab', 'cd', ''), ('abcd', 'abcd', 'abcd'), ('test', 'text', 'tet'), ('thisisatest', 'testing123testing', 'tsitest'), ('DIXON', 'DICKSONX', 'DION'), ('random exponential', 'layer activation', 'ratia'), ('a' * 80, 'a' * 80, 'a' * 80), ('a' * 80, 'b' * 80, ''), ]) def test_distance(left, right, expected): > actual = ALG(external=False)(left, right) tests/test_sequence/test_lcsseq.py:24: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ textdistance/algorithms/sequence_based.py:84: in __call__ return self._dynamic(*sequences) textdistance/algorithms/sequence_based.py:39: in _dynamic lengths = numpy.zeros((len(seq1) + 1, len(seq2) + 1), dtype=numpy.int) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ attr = 'int' def __getattr__(attr): # Warn for expired attributes, and return a dummy function # that always raises an exception. import warnings 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 'int'. E `np.int` was a deprecated alias for the builtin `int`. To avoid this error in existing code, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information. 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.11/site-packages/numpy/__init__.py:305: AttributeError =============================== warnings summary =============================== tests/test_common.py: 443 warnings /usr/lib/python3.11/site-packages/jellyfish/__init__.py:23: DeprecationWarning: the jaro_distance function incorrectly returns the jaro similarity, replace your usage with jaro_similarity before 1.0 warnings.warn( tests/test_common.py: 487 warnings tests/test_edit/test_jaro_winkler.py: 7 warnings tests/test_token/test_monge_elkan.py: 2 warnings /usr/lib/python3.11/site-packages/jellyfish/__init__.py:14: DeprecationWarning: the name 'jaro_winkler' is deprecated and will be removed in jellyfish 1.0, for the same functionality please use jaro_winkler_similarity warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_common.py::test_normalization_range[alg7] - AttributeError:... FAILED tests/test_common.py::test_normalization_range[alg21] - AttributeError... FAILED tests/test_common.py::test_normalization_range[alg22] - AttributeError... FAILED tests/test_common.py::test_normalization_range[alg23] - AttributeError... FAILED tests/test_common.py::test_normalization_by_one[alg7] - AttributeError... FAILED tests/test_common.py::test_normalization_by_one[alg21] - AttributeErro... FAILED tests/test_common.py::test_normalization_by_one[alg22] - AttributeErro... FAILED tests/test_common.py::test_normalization_by_one[alg23] - AttributeErro... FAILED tests/test_common.py::test_normalization_same[alg7] - AttributeError: ... FAILED tests/test_common.py::test_normalization_same[alg21] - AttributeError:... FAILED tests/test_common.py::test_normalization_monotonic[alg7] - AttributeEr... FAILED tests/test_common.py::test_normalization_monotonic[alg21] - AttributeE... FAILED tests/test_common.py::test_normalization_monotonic[alg22] - AttributeE... FAILED tests/test_common.py::test_normalization_monotonic[alg23] - AttributeE... FAILED tests/test_common.py::test_no_common_chars[alg7] - AttributeError: mod... FAILED tests/test_common.py::test_no_common_chars[alg21] - AttributeError: mo... FAILED tests/test_common.py::test_no_common_chars[alg22] - AttributeError: mo... FAILED tests/test_common.py::test_empty[alg7] - AttributeError: module 'numpy... FAILED tests/test_common.py::test_empty[alg21] - AttributeError: module 'nump... FAILED tests/test_common.py::test_unequal_distance[alg7] - AttributeError: mo... FAILED tests/test_common.py::test_unequal_distance[alg21] - AttributeError: m... FAILED tests/test_compression/test_common.py::test_simmetry[alg0] - hypothesi... FAILED tests/test_edit/test_editex.py::test_distance[ab-a-2] - AttributeError... FAILED tests/test_edit/test_editex.py::test_distance[ab-c-4] - AttributeError... FAILED tests/test_edit/test_editex.py::test_distance[ALIE-ALI-1] - AttributeE... FAILED tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params0-12] FAILED tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params1-14] FAILED tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params2-3] FAILED tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params3-4] FAILED tests/test_edit/test_editex.py::test_distance_with_params[MARTHA-MARHTA-params4-5] FAILED tests/test_edit/test_gotoh.py::test_distance_ident[GATTACA-GCATGCU-0] FAILED tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_05[GATTACA-GCATGCU-0] FAILED tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_05[AGACTAGTTAC-TGACGSTGC-1.5] FAILED tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_05[AGACTAGTTAC-CGAGACGT-1] FAILED tests/test_edit/test_gotoh.py::test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT--15] FAILED tests/test_edit/test_jaro_winkler.py::test_distance[frog-fog-0.916666666] FAILED tests/test_edit/test_needleman_wunsch.py::test_distance_matrix[AGACTAGTTAC-CGAGACGT-16] FAILED tests/test_edit/test_needleman_wunsch.py::test_distance_ident[GATTACA-GCATGCU-0] FAILED tests/test_edit/test_needleman_wunsch.py::test_distance_ident_with_gap_5[CGATATCAG-TGACGSTGC--5] FAILED tests/test_edit/test_needleman_wunsch.py::test_distance_ident_with_gap_5[AGACTAGTTAC-TGACGSTGC--7] FAILED tests/test_edit/test_needleman_wunsch.py::test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT--15] FAILED tests/test_edit/test_smith_waterman.py::test_distance_matrix[AGACTAGTTAC-CGAGACGT-26] FAILED tests/test_edit/test_smith_waterman.py::test_distance_ident[GATTACA-GCATGCU-0] FAILED tests/test_edit/test_smith_waterman.py::test_distance_ident_with_gap_5[CGATATCAG-TGACGSTGC-0] FAILED tests/test_edit/test_smith_waterman.py::test_distance_ident_with_gap_5[AGACTAGTTAC-TGACGSTGC-1] FAILED tests/test_edit/test_smith_waterman.py::test_distance_ident_with_gap_5[AGACTAGTTAC-CGAGACGT-0] FAILED tests/test_phonetic/test_editex.py::test_distance[ab-a-2] - AttributeE... FAILED tests/test_phonetic/test_editex.py::test_distance[ab-c-4] - AttributeE... FAILED tests/test_phonetic/test_editex.py::test_distance[nelson-neilsen-2] - ... FAILED tests/test_phonetic/test_editex.py::test_distance[neilsen-nelson-2] - ... FAILED tests/test_phonetic/test_editex.py::test_distance[niall-neal-1] - Attr... FAILED tests/test_phonetic/test_editex.py::test_distance[neal-niall-1] - Attr... FAILED tests/test_phonetic/test_editex.py::test_distance[niall-nihal-2] - Att... FAILED tests/test_phonetic/test_editex.py::test_distance[nihal-niall-2] - Att... FAILED tests/test_phonetic/test_editex.py::test_distance[neal-nihl-3] - Attri... FAILED tests/test_phonetic/test_editex.py::test_distance[nihl-neal-3] - Attri... FAILED tests/test_phonetic/test_editex.py::test_distance[cat-hat-2] - Attribu... FAILED tests/test_phonetic/test_editex.py::test_distance[Niall-Neil-2] - Attr... FAILED tests/test_phonetic/test_editex.py::test_distance[aluminum-Catalan-12] FAILED tests/test_phonetic/test_editex.py::test_distance[ATCG-TAGC-6] - Attri... FAILED tests/test_phonetic/test_editex.py::test_local[ab-a-2] - AttributeErro... FAILED tests/test_phonetic/test_editex.py::test_local[ab-c-2] - AttributeErro... FAILED tests/test_phonetic/test_editex.py::test_local[nelson-neilsen-2] - Att... FAILED tests/test_phonetic/test_editex.py::test_local[neilsen-nelson-2] - Att... FAILED tests/test_phonetic/test_editex.py::test_local[niall-neal-1] - Attribu... FAILED tests/test_phonetic/test_editex.py::test_local[neal-niall-1] - Attribu... FAILED tests/test_phonetic/test_editex.py::test_local[niall-nihal-2] - Attrib... FAILED tests/test_phonetic/test_editex.py::test_local[nihal-niall-2] - Attrib... FAILED tests/test_phonetic/test_editex.py::test_local[neal-nihl-3] - Attribut... FAILED tests/test_phonetic/test_editex.py::test_local[nihl-neal-3] - Attribut... FAILED tests/test_sequence/test_lcsseq.py::test_distance[ab-cd-] - AttributeE... FAILED tests/test_sequence/test_lcsseq.py::test_distance[abcd-abcd-abcd] - At... FAILED tests/test_sequence/test_lcsseq.py::test_distance[test-text-tet] - Att... FAILED tests/test_sequence/test_lcsseq.py::test_distance[thisisatest-testing123testing-tsitest] FAILED tests/test_sequence/test_lcsseq.py::test_distance[DIXON-DICKSONX-DION] FAILED tests/test_sequence/test_lcsseq.py::test_distance[random exponential-layer activation-ratia] FAILED tests/test_sequence/test_lcsseq.py::test_distance[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] FAILED tests/test_sequence/test_lcsseq.py::test_distance[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb-] === 78 failed, 301 passed, 19 deselected, 939 warnings in 903.41s (0:15:03) ==== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.bXmwxX (%check) Bad exit status from /var/tmp/rpm-tmp.bXmwxX (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-textdistance.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, 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 noarch --nodeps /builddir/build/SPECS/python-textdistance.spec