======================================================================
ERROR: test_install_and_execution (test_python_snap.PythonTestCase)
test_python_snap.PythonTestCase.test_install_and_execution
----------------------------------------------------------------------
testtools.testresult.real._StringException: apt-get autoremove output: {{{
Reading package lists...
Building dependency tree...
Reading state information...
The following packages will be REMOVED:
libexpat1-dev libpython3-dev libpython3.6-dev python-pip-whl python3-dev
python3-keyring python3-keyrings.alt python3-pip python3-secretstorage
python3-wheel python3.6-dev
0 upgraded, 0 newly installed, 11 to remove and 0 not upgraded.
After this operation, 20.0 MB disk space will be freed.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 75053 files and directories currently installed.)
Removing python3-dev (3.6.3-0ubuntu2) ...
Removing python3.6-dev (3.6.3-1ubuntu1) ...
Removing libpython3-dev:amd64 (3.6.3-0ubuntu2) ...
Removing libpython3.6-dev:amd64 (3.6.3-1ubuntu1) ...
Removing libexpat1-dev:amd64 (2.2.3-1) ...
Removing python3-pip (9.0.1-2) ...
Removing python-pip-whl (9.0.1-2) ...
Removing python3-keyring (10.4.0-1) ...
Removing python3-keyrings.alt (2.2-2) ...
Removing python3-secretstorage (2.3.1-2) ...
Removing python3-wheel (0.29.0-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
}}}
Traceback (most recent call last):
File "/tmp/autopkgtest.Gtq4xr/build.qNV/snapcraft/snapcraft/tests/integration/snapd/test_python_snap.py", line 33, in test_install_and_execution
['python-hello'], universal_newlines=True),
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['python-hello']' returned non-zero exit status 1.