dhimmel / obonet

OBO-formatted ontologies → networkx (Python 3)
https://github.com/dhimmel/obonet/blob/main/examples/go-obonet.ipynb
Other
136 stars 28 forks source link

Fix test warnings on Python 3.7 #14

Closed dhimmel closed 5 years ago

dhimmel commented 5 years ago

https://travis-ci.org/dhimmel/obonet/jobs/496245613#L284

=============================== warnings summary ===============================
tests/test_obo_reading.py:117
  /home/travis/build/dhimmel/obonet/tests/test_obo_reading.py:117: DeprecationWarning: invalid escape sequence \!
    line = 'synonym: not a real example \!\n'
tests/test_obo_reading.py:120
  /home/travis/build/dhimmel/obonet/tests/test_obo_reading.py:120: DeprecationWarning: invalid escape sequence \!
    assert value == 'not a real example \!'
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/networkx/classes/graph.py:23
  /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/networkx/classes/graph.py:23: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Mapping
/home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/networkx/classes/reportviews.py:95
  /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/networkx/classes/reportviews.py:95: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Mapping, Set, Iterable
  /home/travis/virtualenv/python3.7.1/lib/python3.7/site-packages/networkx/classes/reportviews.py:95: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
    from collections import Mapping, Set, Iterable
-- Docs: https://docs.pytest.org/en/latest/warnings.html