seatgeek/fuzzywuzzy

1.20.1: pytest based test suite is failing

Opened this issue · 1 comments

+ /usr/bin/python3 -s -B -m compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64 -p / /home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib64/python3.8/site-packages /home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib64/python3.8/site-packages'...
Can't list '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib64/python3.8/site-packages'
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages'...
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy/StringMatcher.py'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy/__init__.py'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy/fuzz.py'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy/process.py'...
Listing '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy-0.18.0-py3.8.egg-info'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy/string_processing.py'...
Compiling '/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages/fuzzywuzzy/utils.py'...
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.EgijeN
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd fuzzywuzzy-0.18.0
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin'
+ PATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/bin:/usr/bin:/usr/sbin:/usr/local/sbin
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-fuzzywuzzy-0.18.0-6.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/fuzzywuzzy-0.18.0
plugins: flaky-3.6.1, forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, asyncio-0.14.0, expect-1.1.0, pyfakefs-4.1.0, cov-2.11.1, mock-3.5.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, hypothesis-6.3.3, timeout-1.4.2
collected 71 items

test_fuzzywuzzy.py .................................................                                                                                                 [ 69%]
test_fuzzywuzzy_hypothesis.py .....................                                                                                                                  [ 98%]
test_fuzzywuzzy_pytest.py F                                                                                                                                          [100%]

================================================================================= FAILURES =================================================================================
___________________________________________________________________________ test_process_warning ___________________________________________________________________________

capsys = <_pytest.capture.CaptureFixture object at 0x7f6ec16d2520>

    def test_process_warning(capsys):
        """Check that a string reduced to 0 by processor logs a warning to stderr"""

        query = ':::::::'
        choices = [':::::::']

        _ = process.extractOne(query, choices)

        out, err = capsys.readouterr()

        outstr = ("WARNING:root:Applied processor reduces "
                  "input query to empty string, "
                  "all comparisons will have score 0. "
                  "[Query: ':::::::']\n")

>       assert err == outstr
E       assert '' == "WARNING:root... ':::::::']\n"
E         - WARNING:root:Applied processor reduces input query to empty string, all comparisons will have score 0. [Query: ':::::::']

test_fuzzywuzzy_pytest.py:19: AssertionError
---------------------------------------------------------------------------- Captured log call -----------------------------------------------------------------------------
WARNING  root:process.py:80 Applied processor reduces input query to empty string, all comparisons will have score 0. [Query: ':::::::']
============================================================================= warnings summary =============================================================================
fuzzywuzzy/fuzz.py:10
  /home/tkloczko/rpmbuild/BUILD/fuzzywuzzy-0.18.0/fuzzywuzzy/fuzz.py:10: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
    warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
FAILED test_fuzzywuzzy_pytest.py::test_process_warning - assert '' == "WARNING:root... ':::::::']\n"
================================================================= 1 failed, 70 passed, 1 warning in 3.70s ==================================================================

gentle ping .. any update? :)