yams #10132389 Multiple DeprecationWarning related to modules [open]

Running the test suite results in multiple DeprecationWarnings:

* /usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
* /usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

See full output:

============================= test session starts ==============================
platform linux2 -- Python 2.7.16, pytest-3.10.1, py-1.7.0, pluggy-0.8.0
rootdir: /tmp/autopkgtest.RRoXpd/autopkgtest_tmp, inifile: tox.ini
collected 141 items

test/unittest_constraints.py ................. [ 12%]
test/unittest_diff.py ........ [ 17%]
test/unittest_reader.py ................................................ [ 51%]
............ [ 60%]
test/unittest_schema.py .............................................. [ 92%]
test/unittest_schema2dot.py . [ 93%]
test/unittest_serialize.py . [ 94%]
test/unittest_specialization.py ....... [ 99%]
test/unittest_xy.py . [100%]

=============================== warnings summary ===============================
/usr/lib/python2.7/dist-packages/yams/reader.py:124
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)

/usr/lib/python2.7/dist-packages/yams/reader.py:235
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

test/unittest_reader.py::SchemaLoaderTC::test_attributes_permissions
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

test/unittest_reader.py::PySchemaTC::test_date_defaults
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

test/unittest_reader.py::SchemaLoaderTC2::test_imports
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

test/unittest_reader.py::SchemaLoaderTC2::test_post_build_callback
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

test/unittest_schema.py::EntitySchemaTC::test_attribute_description
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

test/unittest_schema.py::EntitySchemaTC::test_deepcopy_specialization
/usr/lib/python2.7/dist-packages/yams/reader.py:124: DeprecationWarning: provide a list of modules names instead of directories
DeprecationWarning)
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))
/usr/lib/python2.7/dist-packages/yams/reader.py:235: DeprecationWarning: you should avoid using modpath_from_file()
modname = '.'.join(modpath_from_file(filepath, self.extrapath))

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=================== 141 passed, 39 warnings in 0.90 seconds ====================

prioritynormal
typebug
done in<not specified>
closed by<not specified>