Comment 7 for bug 1833685

Revision history for this message
Aaron Whitehouse (aaron-whitehouse) wrote :

Hello Sebastien,

I am struggling to replicate this. Do you still have a failure in your environment if you use tox -e py37 ?

If I use our standard testing docker container, based on 18.04, the tests all pass fine for Python 3.7 (3 warnings). If I modify the testing docker to be based on 19.04 (and remove the Python 3.6 dependencies -- see attached), again the Python 3.7 tests pass with 3 warnings.

Could there be something else in your environment causing this? Or missing dependencies that are in the Dockerfile?

===

bzr branch lp:duplicity
cd duplicity/testing/infrastructure/
./build-duplicity_test.sh
./setup.sh
tox -e py37

=============================== warnings summary ===============================
.tox/py37/lib/python3.7/site-packages/past/types/oldstr.py:5
  /home/test/duplicity/.tox/py37/lib/python3.7/site-packages/past/types/oldstr.py:5: 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 Iterable

.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:4
  /home/test/duplicity/.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:4: 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

testing/unit/test_globmatch.py:100
  /home/test/duplicity/testing/unit/test_globmatch.py:100: DeprecationWarning: invalid escape sequence \/
    u"\/usr\/[^/]*\/bin\/")

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=================== 428 passed, 3 warnings in 709.06 seconds ===================
___________________________________ summary ____________________________________
  py37: commands succeeded

# Change Dockerfile to 19.04 and remove python3.6 and python3.6-dev
./build-duplicity_test.sh
./setup.sh
tox -e py37
=============================== warnings summary ===============================
.tox/py37/lib/python3.7/site-packages/past/types/oldstr.py:5
  /home/test/duplicity/.tox/py37/lib/python3.7/site-packages/past/types/oldstr.py:5: 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 Iterable

.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:4
  /home/test/duplicity/.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:4: 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

testing/unit/test_globmatch.py:100
  /home/test/duplicity/testing/unit/test_globmatch.py:100: DeprecationWarning: invalid escape sequence \/
    u"\/usr\/[^/]*\/bin\/")

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=================== 428 passed, 3 warnings in 739.91 seconds ===================
___________________________________ summary ____________________________________
  py37: commands succeeded