pyfilesystem2 icon indicating copy to clipboard operation
pyfilesystem2 copied to clipboard

2.4.14: pytest warnings

Open kloczek opened this issue 3 years ago • 0 comments

I'm trying to package your module as an rpm package. So I'm using the typical build, install and test cycle used on building packages from non-root account.

  • "setup.py build"
  • "setup.py install --root </install/prefix>"
  • "pytest with PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>

Here are warnings which shows pytest

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-fs-2.4.14-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-fs-2.4.14-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.10.0, pluggy-0.13.1
benchmark: 3.4.1 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
rootdir: /home/tkloczko/rpmbuild/BUILD/pyfilesystem2-2.4.14, configfile: setup.cfg
plugins: shutil-1.7.0, virtualenv-1.7.0, mock-3.6.1, cov-2.12.1, anyio-3.3.4, forked-1.3.0, xdist-2.3.0, flaky-3.7.0, tornasync-0.6.0.post2, console-scripts-1.2.0, trio-0.7.0, timeout-2.0.1, asyncio-0.16.0, freezegun-0.4.2, flake8-1.0.7, pyfakefs-4.5.3, hypothesis-6.29.3, benchmark-3.4.1, profiling-1.7.0, datadir-1.3.1, regressions-2.2.0
collected 2418 items

tests/test_appfs.py ......................................................................s......................................................................... [  5%]
.......s................................................................................s........................................................................... [ 12%]
.....s................................................................................s............................................................................. [ 19%]
...s..........                                                                                                                                                       [ 20%]
tests/test_base.py .                                                                                                                                                 [ 20%]
tests/test_bulk.py .                                                                                                                                                 [ 20%]
tests/test_copy.py ..........................................                                                                                                        [ 21%]
tests/test_doctest.py .............................................................                                                                                  [ 24%]
tests/test_encoding.py ...                                                                                                                                           [ 24%]
tests/test_enums.py .                                                                                                                                                [ 24%]
tests/test_error_tools.py ..                                                                                                                                         [ 24%]
tests/test_errors.py ....                                                                                                                                            [ 24%]
tests/test_filesize.py ....                                                                                                                                          [ 25%]
tests/test_fscompat.py ...                                                                                                                                           [ 25%]
tests/test_ftp_parse.py .......                                                                                                                                      [ 25%]
tests/test_ftpfs.py ..........s.....................................................................................s............................................... [ 31%]
.......................................s...........................................................................                                                  [ 36%]
tests/test_glob.py ..........                                                                                                                                        [ 36%]
tests/test_imports.py .                                                                                                                                              [ 36%]
tests/test_info.py .........                                                                                                                                         [ 36%]
tests/test_iotools.py ............                                                                                                                                   [ 37%]
tests/test_lrucache.py .                                                                                                                                             [ 37%]
tests/test_memoryfs.py ...................................................................................                                                           [ 40%]
tests/test_mirror.py ................................                                                                                                                [ 42%]
tests/test_mode.py ..                                                                                                                                                [ 42%]
tests/test_mountfs.py .............................................................................................................................................. [ 48%]
.......................                                                                                                                                              [ 49%]
tests/test_move.py ....                                                                                                                                              [ 49%]
tests/test_multifs.py ...........................................................................s............                                                       [ 52%]
tests/test_new_name.py .                                                                                                                                             [ 53%]
tests/test_opener.py ..................................                                                                                                              [ 54%]
tests/test_osfs.py .............s..............................................................s...........                                                          [ 58%]
tests/test_path.py .....................                                                                                                                             [ 58%]
tests/test_permissions.py ..............                                                                                                                             [ 59%]
tests/test_subfs.py .............s..............................................................s........................s.......................................... [ 65%]
....................s............                                                                                                                                    [ 66%]
tests/test_tarfs.py .....................................................................s.......................................................................... [ 72%]
....s..............................................................................s..............................................................................s. [ 79%]
.............................................................................s..............................................                                         [ 84%]
tests/test_tempfs.py .............s..............................................................s..........................s....................................... [ 90%]
.......................s...........                                                                                                                                  [ 92%]
tests/test_time.py ..                                                                                                                                                [ 92%]
tests/test_tools.py ...                                                                                                                                              [ 92%]
tests/test_tree.py ....                                                                                                                                              [ 92%]
tests/test_url_tools.py .                                                                                                                                            [ 92%]
tests/test_walk.py ....................                                                                                                                              [ 93%]
tests/test_wildcard.py ...                                                                                                                                           [ 93%]
tests/test_wrap.py ..................................                                                                                                                [ 94%]
tests/test_wrapfs.py ...                                                                                                                                             [ 94%]
tests/test_zipfs.py .....................................................................s....................................................                       [100%]

============================================================================= warnings summary =============================================================================
fs/base.py:73
fs/base.py:73
fs/base.py:73
fs/base.py:73
fs/base.py:73
  /home/tkloczko/rpmbuild/BUILD/pyfilesystem2-2.4.14/fs/base.py:73: DeprecationWarning: method 'settext' has been deprecated, please rename to 'writetext'
    warnings.warn(

tests/test_ftpfs.py::TestFTPFS::test_upload_connection
tests/test_ftpfs.py::TestFTPFSNoMLSD::test_upload_connection
  /home/tkloczko/rpmbuild/BUILD/pyfilesystem2-2.4.14/fs/base.py:73: DeprecationWarning: method 'gettext' has been deprecated, please rename to 'readtext'
    warnings.warn(

tests/test_ftpfs.py::TestAnonFTPFS::test_appendbytes
  /usr/lib/python3.8/site-packages/pyftpdlib/authorizers.py:243: RuntimeWarning: write permissions assigned to anonymous user.
    warnings.warn("write permissions assigned to anonymous user.",

tests/test_wrap.py::TestWrapReadOnlySyspath::test_copy_file_if_newer
  /home/tkloczko/rpmbuild/BUILD/pyfilesystem2-2.4.14/fs/copy.py:161: DeprecationWarning: copy_file_if_newer is deprecated. Use copy_file_if instead.
    warnings.warn(

tests/test_wrap.py::TestWrapReadOnlySyspath::test_copy_fs_if_newer
  /home/tkloczko/rpmbuild/BUILD/pyfilesystem2-2.4.14/fs/copy.py:68: DeprecationWarning: copy_fs_if_newer is deprecated. Use copy_fs_if instead.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================= short test summary info ==========================================================================
SKIPPED [18] fs/test.py:1863: the filesystem does not support unicode paths.
SKIPPED [3] fs/test.py:1885: case sensitivity not known
SKIPPED [5] tests/test_osfs.py:117: the copy function uses sendfile in Python 3.8+, making the patched implementation irrelevant
============================================================== 2392 passed, 26 skipped, 10 warnings in 44.00s ==============================================================

kloczek avatar Dec 04 '21 12:12 kloczek