Tinche / aiofiles

File support for asyncio
Apache License 2.0
2.66k stars 150 forks source link

0.6.0: pytest warnings #101

Closed kloczek closed 2 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.3, py-1.10.0, pluggy-0.13.1
rootdir: /home/tkloczko/rpmbuild/BUILD/aiofiles-0.6.0
plugins: forked-1.3.0, shutil-1.7.0, virtualenv-1.7.0, expect-1.1.0, cov-2.11.1, httpbin-1.0.0, xdist-2.2.1, flake8-1.0.7, timeout-1.4.2, betamax-0.8.1, pyfakefs-4.4.0, freezegun-0.4.2, cases-3.4.6, case-1.5.3, isort-1.3.0, aspectlib-1.5.2, flaky-3.7.0, mock-3.6.0, hypothesis-6.12.0, asyncio-0.15.1, toolbox-0.5
collected 155 items

tests/test_os.py ......                                                                                                                                              [  3%]
tests/test_simple.py ..                                                                                                                                              [  5%]
tests/threadpool/test_binary.py ...................................................................................................                                  [ 69%]
tests/threadpool/test_concurrency.py .                                                                                                                               [ 69%]
tests/threadpool/test_open.py ...                                                                                                                                    [ 71%]
tests/threadpool/test_text.py ............................................                                                                                           [100%]

============================================================================= warnings summary =============================================================================
tests/test_simple.py::test_serve_small_bin_file_sync
  /home/tkloczko/rpmbuild/BUILD/aiofiles-0.6.0/tests/test_simple.py:26: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
    server = await asyncio.start_server(

tests/test_simple.py::test_serve_small_bin_file_sync
  /home/tkloczko/rpmbuild/BUILD/aiofiles-0.6.0/tests/test_simple.py:30: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
    reader, _ = await asyncio.open_connection(

tests/test_simple.py::test_serve_small_bin_file
  /home/tkloczko/rpmbuild/BUILD/aiofiles-0.6.0/tests/test_simple.py:57: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
    server = await asyncio.start_server(

tests/test_simple.py::test_serve_small_bin_file
  /home/tkloczko/rpmbuild/BUILD/aiofiles-0.6.0/tests/test_simple.py:61: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
    reader, _ = await asyncio.open_connection(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
===================================================================== 155 passed, 4 warnings in 1.81s ======================================================================
shirobachi commented 2 years ago

Same issue here: https://termbin.com/6fsv

Tinche commented 2 years ago

Upgrade to the latest version, it should be fixed there? (See https://github.com/Tinche/aiofiles/blob/master/src/aiofiles/os.py)