whoosh-community / whoosh

Whoosh is a fast, featureful full-text indexing and searching library implemented in pure Python.
Other
245 stars 37 forks source link

2.7.4: pytest error and warnings #571

Open kloczek opened 3 years ago

kloczek commented 3 years ago
+ /usr/bin/python3 -Bm pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.9, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
Using --randomly-seed=1440514301
rootdir: /home/tkloczko/rpmbuild/BUILD/whoosh-2.7.4, configfile: setup.cfg
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, asyncio-0.15.1, toolbox-0.5, xprocess-0.17.1, aiohttp-0.3.0, checkdocs-2.7.0, mock-3.6.1, rerunfailures-9.1.1, requests-mock-1.9.3, Faker-8.4.0, cov-2.12.1, randomly-3.8.0, pyfakefs-4.5.0, hypothesis-6.13.14
collected 577 items

tests/test_columns.py .........                                                                                                                                      [  1%]
tests/test_compound.py ..                                                                                                                                            [  1%]
tests/test_postings.py ......                                                                                                                                        [  2%]
tests/test_writing.py ..................                                                                                                                             [  6%]
tests/test_sorting.py ..................................                                                                                                             [ 11%]
tests/test_matching.py .........................                                                                                                                     [ 16%]
tests/test_spelling.py ..............                                                                                                                                [ 18%]
tests/test_collector.py ........                                                                                                                                     [ 20%]
tests/test_fields.py ............................                                                                                                                    [ 25%]
tests/test_misc.py .........                                                                                                                                         [ 26%]
tests/test_results.py ..........................                                                                                                                     [ 31%]
tests/test_parse_plugins.py ....................                                                                                                                     [ 34%]
tests/test_weightings.py ..                                                                                                                                          [ 34%]
tests/test_searching.py ...................................................................                                                                          [ 46%]
tests/test_reading.py ..............                                                                                                                                 [ 48%]
tests/test_parsing.py ...............................................................                                                                                [ 59%]
tests/test_automata.py .......F...........                                                                                                                           [ 63%]
tests/test_mpwriter.py .........                                                                                                                                     [ 64%]
tests/test_dateparse.py .............                                                                                                                                [ 67%]
tests/test_codecs.py ..................                                                                                                                              [ 70%]
tests/test_indexing.py ..............................                                                                                                                [ 75%]
tests/test_spans.py ...............                                                                                                                                  [ 77%]
tests/test_tables.py .........                                                                                                                                       [ 79%]
tests/test_highlighting.py ................                                                                                                                          [ 82%]
tests/test_bits.py ...........                                                                                                                                       [ 84%]
tests/test_classify.py ......                                                                                                                                        [ 85%]
tests/test_nested.py ..........                                                                                                                                      [ 86%]
tests/test_vectors.py .......                                                                                                                                        [ 88%]
tests/test_queries.py ........................                                                                                                                       [ 92%]
tests/test_flexible.py ....                                                                                                                                          [ 93%]
tests/test_quality.py .....                                                                                                                                          [ 93%]
tests/test_analysis.py ......................                                                                                                                        [ 97%]
. .                                                                                                                                                                  [ 97%]
tests/test_analysis.py ............                                                                                                                                  [100%]

================================================================================= FAILURES =================================================================================
____________________________________________________________________________ test_minimize_dfa _____________________________________________________________________________
Traceback (most recent call last):
  File "/home/tkloczko/rpmbuild/BUILD/whoosh-2.7.4/tests/test_automata.py", line 355, in test_minimize_dfa
    assert dfa == good
AssertionError: assert <whoosh.automata.fsa.DFA object at 0x7fe0583c3970> == <whoosh.automata.fsa.DFA object at 0x7fe0583c3e50>
============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1233
  /usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: pep8ignore

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

tests/test_analysis.py:523
  /home/tkloczko/rpmbuild/BUILD/whoosh-2.7.4/tests/test_analysis.py:523: DeprecationWarning: invalid escape sequence \w
    t = analysis.RegexTokenizer("\w+")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
FAILED tests/test_automata.py::test_minimize_dfa - assert <whoosh.automata.fsa.DFA object at 0x7fe0583c3970> == <whoosh.automata.fsa.DFA object at 0x7fe0583c3e50>
================================================================ 1 failed, 575 passed, 2 warnings in 18.56s ================================================================
kloczek commented 2 years ago

gentle ping .. 😃