wichert / lingua

Translation toolkit for Python
Other
45 stars 32 forks source link

4.15.0: pytest warning #105

Open kloczek opened 2 years ago

kloczek commented 2 years ago

Looks like latest pytet shows one warning

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-lingua-4.15.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-lingua-4.15.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/lingua-4.15.0, configfile: pyproject.toml, testpaths: tests
collected 101 items

tests/test_extract.py ......                                                                                                                                         [  5%]
tests/extractors/test_init.py ............                                                                                                                           [ 17%]
tests/extractors/test_python.py ....................                                                                                                                 [ 37%]
tests/extractors/test_xml.py .........................................................                                                                               [ 94%]
tests/extractors/test_zcml.py ......                                                                                                                                 [100%]

============================================================================= warnings summary =============================================================================
tests/extractors/test_python.py::test_bytes_input
  /home/tkloczko/rpmbuild/BUILD/lingua-4.15.0/tests/extractors/test_python.py:255: UnicodeWarning: Python extractor called with bytes input. Please update your plugin to submit unicode instead.
    messages = list(python_extractor("filename", options))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 101 passed, 1 warning in 0.53s ======================================================================