gluster/glusto-tests

The 'warn' method is deprecated, use 'warning' instead

Closed this issue · 1 comments

Running with Python 3 part 4 branch:

============================================================================================================== warnings summary ==============================================================================================================
functional/dht/test_access_file.py::TestFileAccessSubvolDown_cplex_distributed-replicated_glusterfs::test_file_access
  /usr/local/lib/python3.6/site-packages/glustolibs_gluster-0.22-py3.6.egg/glustolibs/gluster/gluster_base_class.py:1057: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    g.log.warn(ret)

-- Docs: https://docs.pytest.org/en/stable/warnings.html

I was looking at the line which you have referred in this issue, ideally it should be g.log.info and not g.log.warn.