Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated #27

Open
yurivict opened this issue Jun 18, 2023 · 0 comments

Comments

@yurivict
Copy link

===>   py39-aspectlib-2.0.0 depends on file: /usr/local/bin/python3.9 - found
cd /usr/ports/devel/py-aspectlib/work-py39/aspectlib-2.0.0 && /usr/bin/env XDG_DATA_HOME=/usr/ports/devel/py-aspectlib/work-py39  XDG_CONFIG_HOME=/usr/ports/devel/py-aspectlib/work-py39  XDG_CACHE_HOME=/usr/ports/devel/py-aspectlib/work-py39/.cache  HOME=/usr/ports/devel/py-aspectlib/work-py39 PATH=/usr/local/libexec/ccache:/usr/ports/devel/py-aspectlib/work-py39/.bin:/home/yuri/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PKG_CONFIG_LIBDIR=/usr/ports/devel/py-aspectlib/work-py39/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  CC="cc" CFLAGS="-O2 -pipe  -fstack-protector-strong -fno-strict-aliasing "  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector-strong " LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing  "  MANPREFIX="/usr/local" CCACHE_DIR="/tmp/.ccache" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 0644"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444" PYTHONPATH=/usr/ports/devel/py-aspectlib/work-py39/stage/usr/local/lib/python3.9/site-packages /usr/local/bin/python3.9 -m pytest -k '' -rs -v -o addopts= 
Test session starts (platform: freebsd13, Python 3.9.16, pytest 7.3.1, pytest-sugar 0.9.7)
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/usr/ports/devel/py-aspectlib/work-py39/aspectlib-2.0.0/.hypothesis/examples')
Using --randomly-seed=69246004
rootdir: /usr/ports/devel/py-aspectlib/work-py39/aspectlib-2.0.0
configfile: pytest.ini
testpaths: tests
plugins: aspectlib-2.0.0, forked-1.6.0, hypothesis-6.75.9, mypy-plugins-1.11.1, cov-2.9.0, randomly-3.12.0, timeout-2.1.0, xdist-2.5.0, rerunfailures-11.1.2, flaky-3.7.0, env-0.6.2, mock-3.10.0, anyio-3.7.0, checkdocs-2.9.0, black-0.3.12, mypy-0.10.3, sugar-0.9.7, services-2.2.1, flake8-1.1.1, enabler-2.1.1, xdoctest-1.1.1
collecting 130 items / 1 error                                                                                                                                                                                                 
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ERROR collecting tests/test_integrations.py ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
tests/test_integrations.py:9: in <module>
    from process_tests import dump_on_error
/usr/local/lib/python3.9/site-packages/process_tests.py:26: in <module>
    import unittest2 as unittest
/usr/local/lib/python3.9/site-packages/unittest2/__init__.py:40: in <module>
    from unittest2.collector import collector
/usr/local/lib/python3.9/site-packages/unittest2/collector.py:3: in <module>
    from unittest2.loader import defaultTestLoader
/usr/local/lib/python3.9/site-packages/unittest2/loader.py:13: in <module>
    from unittest2 import case, suite, util
/usr/local/lib/python3.9/site-packages/unittest2/case.py:18: in <module>
    from unittest2 import result
/usr/local/lib/python3.9/site-packages/unittest2/result.py:10: in <module>
    from unittest2.compatibility import wraps
/usr/local/lib/python3.9/site-packages/unittest2/compatibility.py:143: in <module>
    class ChainMap(collections.MutableMapping):
/usr/local/lib/python3.9/collections/__init__.py:62: in __getattr__
    warnings.warn("Using or importing the ABCs from 'collections' instead "
E   DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
collected 130 items / 1 error                                                                                                                                                                                                  

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Results (3.15s):
*** Error code 2

Version: 2.0.0
Python: 3.9
FreeBSD 13.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant