Skip to content

Console Output

16:13:00 + docker run --name dpy-tests-2-0-py3.7-19.03.12 -e DOCKER_HOST=tcp://dpy-dind-2-0-py3.7-19.03.12:2375 -e DOCKER_TEST_API_VERSION=1.40 --network dpy-testnet-2-0-py3.7-19.03.12 --volumes-from dpy-dind-2-0-py3.7-19.03.12 dockerbuildbot/docker-py:py3-2d219ff739cbb743db5fd6d5e2988cede39a03e8 py.test -v -rxs --cov=docker tests/
16:13:01 ============================= test session starts ==============================
16:13:01 platform linux -- Python 3.7.8, pytest-4.3.1, py-1.9.0, pluggy-0.13.1 -- /usr/local/bin/python
16:13:01 cachedir: .pytest_cache
16:13:01 rootdir: /src, inifile: pytest.ini
16:13:01 plugins: cov-2.6.1, timeout-1.3.3
16:13:02 collecting ... collected 0 items / 1 errors
16:13:02 
16:13:02 ==================================== ERRORS ====================================
16:13:02 ______________________________ ERROR collecting  _______________________________
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/config/__init__.py:429: in _importconftest
16:13:02     return self._conftestpath2mod[conftestpath]
16:13:02 E   KeyError: local('/src/tests/integration/conftest.py')
16:13:02 
16:13:02 During handling of the above exception, another exception occurred:
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/config/__init__.py:435: in _importconftest
16:13:02     mod = conftestpath.pyimport()
16:13:02 /usr/local/lib/python3.7/site-packages/py/_path/local.py:704: in pyimport
16:13:02     __import__(modname)
16:13:02 <frozen importlib._bootstrap>:983: in _find_and_load
16:13:02     ???
16:13:02 <frozen importlib._bootstrap>:967: in _find_and_load_unlocked
16:13:02     ???
16:13:02 <frozen importlib._bootstrap>:668: in _load_unlocked
16:13:02     ???
16:13:02 <frozen importlib._bootstrap>:638: in _load_backward_compatible
16:13:02     ???
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/assertion/rewrite.py:296: in load_module
16:13:02     six.exec_(co, mod.__dict__)
16:13:02 tests/integration/conftest.py:6: in <module>
16:13:02     import docker.errors
16:13:02 docker/__init__.py:4: in <module>
16:13:02     from .context import Context
16:13:02 docker/context/__init__.py:2: in <module>
16:13:02     from .context import Context
16:13:02 E     File "/src/docker/context/context.py", line 189
16:13:02 E       <<<<<<< HEAD
16:13:02 E                  ^
16:13:02 E   IndentationError: expected an indented block
16:13:02 
16:13:02 During handling of the above exception, another exception occurred:
16:13:02 /usr/local/lib/python3.7/site-packages/py/_path/common.py:383: in visit
16:13:02     for x in Visitor(fil, rec, ignore, bf, sort).gen(self):
16:13:02 /usr/local/lib/python3.7/site-packages/py/_path/common.py:424: in gen
16:13:02     dirs = self.optsort([p for p in entries
16:13:02 /usr/local/lib/python3.7/site-packages/py/_path/common.py:425: in <listcomp>
16:13:02     if p.check(dir=1) and (rec is None or rec(p))])
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/main.py:651: in _recurse
16:13:02     ihook = self.gethookproxy(dirpath)
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/main.py:472: in gethookproxy
16:13:02     my_conftestmodules = pm._getconftestmodules(fspath)
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/config/__init__.py:413: in _getconftestmodules
16:13:02     mod = self._importconftest(conftestpath.realpath())
16:13:02 /usr/local/lib/python3.7/site-packages/_pytest/config/__init__.py:452: in _importconftest
16:13:02     raise ConftestImportFailure(conftestpath, sys.exc_info())
16:13:02 E   _pytest.config.ConftestImportFailure: (local('/src/tests/integration/conftest.py'), (<class 'IndentationError'>, IndentationError('expected an indented block', ('/src/docker/context/context.py', 189, 0, '<<<<<<< HEAD\n')), <traceback object at 0x7f912f7e5460>))
16:13:02 =============================== warnings summary ===============================
16:13:02 /usr/local/lib/python3.7/site-packages/paramiko/hostkeys.py:23
16:13:02   /usr/local/lib/python3.7/site-packages/paramiko/hostkeys.py:23: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
16:13:02     from collections import MutableMapping
16:13:02 
16:13:02 -- Docs: https://docs.pytest.org/en/latest/warnings.html
16:13:02 
16:13:02 ----------- coverage: platform linux, python 3.7.8-final-0 -----------
16:13:02 Name                                  Stmts   Miss Branch BrPart  Cover
16:13:02 -----------------------------------------------------------------------
16:13:02 docker/__init__.py                        8      5      0      0    38%
16:13:02 docker/api/__init__.py                    1      0      0      0   100%
16:13:02 docker/api/build.py                     126    112     93      0     6%
16:13:02 docker/api/client.py                    265    200    100      0    18%
16:13:02 docker/api/config.py                     31     19      6      0    32%
16:13:02 docker/api/container.py                 266    208    104      0    16%
16:13:02 docker/api/daemon.py                     39     29     14      0    19%
16:13:02 docker/api/exec_api.py                   46     36     22      0    15%
16:13:02 docker/api/image.py                     149    116     52      0    16%
16:13:02 docker/api/network.py                    90     74     48      0    12%
16:13:02 docker/api/plugin.py                     90     68     14      0    21%
16:13:02 docker/api/secret.py                     36     23     10      0    28%
16:13:02 docker/api/service.py                   200    176    149      0     7%
16:13:02 docker/api/swarm.py                     106     77     38      0    20%
16:13:02 docker/api/volume.py                     38     29     14      0    17%
16:13:02 docker/auth.py                          198    159     74      0    14%
16:13:02 docker/client.py                         67     25      2      0    61%
16:13:02 docker/constants.py                      20      0      0      0   100%
16:13:02 docker/context/__init__.py                2      1      0      0    50%
16:13:02 docker/context/api.py                    78     78     38      0     0%
16:13:02 docker/context/config.py                 61     61     16      0     0%
16:13:02 docker/credentials/__init__.py            3      0      0      0   100%
16:13:02 docker/credentials/constants.py           4      0      0      0   100%
16:13:02 docker/credentials/errors.py             11      4      2      0    54%
16:13:02 docker/credentials/store.py              50     35     16      0    23%
16:13:02 docker/credentials/utils.py              23     18     12      0    14%
16:13:02 docker/errors.py                        110     60     20      0    38%
16:13:02 docker/models/__init__.py                 0      0      0      0   100%
16:13:02 docker/models/configs.py                 21      8      2      0    57%
16:13:02 docker/models/containers.py             183    131     70      0    21%
16:13:02 docker/models/images.py                 137     92     58      0    23%
16:13:02 docker/models/networks.py                37     20     12      0    35%
16:13:02 docker/models/nodes.py                   15      5      2      0    59%
16:13:02 docker/models/plugins.py                 49     30     10      0    32%
16:13:02 docker/models/resource.py                41     24      6      0    36%
16:13:02 docker/models/secrets.py                 21      8      2      0    57%
16:13:02 docker/models/services.py                87     63     36      0    20%
16:13:02 docker/models/swarm.py                   39     21      6      0    40%
16:13:02 docker/models/volumes.py                 23     10      4      0    48%
16:13:02 docker/tls.py                            37     26     14      0    22%
16:13:02 docker/transport/__init__.py             11      3      0      0    73%
16:13:02 docker/transport/basehttpadapter.py       6      3      2      0    38%
16:13:02 docker/transport/npipeconn.py            58     53     10      0     7%
16:13:02 docker/transport/npipesocket.py         137    132     22      0     3%
16:13:02 docker/transport/sshconn.py              87     61     22      1    25%
16:13:02 docker/transport/ssladapter.py           36     22     10      1    33%
16:13:02 docker/transport/unixconn.py             65     41     12      0    31%
16:13:02 docker/types/__init__.py                  6      0      0      0   100%
16:13:02 docker/types/base.py                      5      2      2      0    43%
16:13:02 docker/types/containers.py              418    375    328      0     6%
16:13:02 docker/types/daemon.py                   36     26     14      0    20%
16:13:02 docker/types/healthcheck.py              34     20      4      0    37%
16:13:02 docker/types/networks.py                 41     31     28      0    14%
16:13:02 docker/types/services.py                312    259    206      0    10%
16:13:02 docker/types/swarm.py                    51     45     40      0     7%
16:13:02 docker/utils/__init__.py                  3      0      0      0   100%
16:13:02 docker/utils/build.py                   154    129     76      0    11%
16:13:02 docker/utils/config.py                   36     25     10      0    24%
16:13:02 docker/utils/decorators.py               32     15     12      0    39%
16:13:02 docker/utils/fnmatch.py                  55     47     28      0    10%
16:13:02 docker/utils/json_stream.py              43     31     14      1    23%
16:13:02 docker/utils/ports.py                    50     50     32      0     0%
16:13:02 docker/utils/proxy.py                    32     22     12      0    23%
16:13:02 docker/utils/socket.py                   86     64     40      0    17%
16:13:02 docker/utils/utils.py                   285    244    177      1     9%
16:13:02 docker/version.py                         2      0      2      0   100%
16:13:02 -----------------------------------------------------------------------
16:13:02 TOTAL                                  4889   3751   2169      4    16%
16:13:02 
16:13:02 !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
16:13:02 ===================== 1 warnings, 1 error in 1.47 seconds ======================