Public bug reported:

Like so:

======================================================================
ERROR: test_parts_build_env_contains_parallel_build_count 
(snapcraft.tests.test_project_loader.TestYamlEnvironment)
snapcraft.tests.test_project_loader.TestYamlEnvironment.test_parts_build_env_contains_parallel_build_count
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/usr/lib/python3.6/unittest/mock.py", line 1179, in patched
    return func(*args, **keywargs)
  File 
"/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/tests/test_project_loader.py", 
line 1791, in test_parts_build_env_contains_parallel_build_count
    config = project_loader.Config()
  File 
"/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/internal/project_loader.py", 
line 118, in __init__
    self._snapcraft_yaml)
  File "/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/internal/parts.py", line 
158, in __init__
    self._process_parts()
  File "/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/internal/parts.py", line 
188, in _process_parts
    self.load_plugin(part_name, plugin_name, properties)
  File "/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/internal/parts.py", line 
266, in load_plugin
    definitions_schema=self._validator.definitions_schema)
  File 
"/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/internal/pluginhandler/__init__.py",
 line 833, in load_plugin
    definitions_schema=definitions_schema)
  File 
"/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/internal/pluginhandler/__init__.py",
 line 87, in __init__
    self.ubuntudir = os.path.join(parts_dir, part_name, 'ubuntu')
  File "/usr/lib/python3.6/posixpath.py", line 78, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not MagicMock


======================================================================
FAIL: test_wait_for_network_loops (snapcraft.tests.test_lxd.LXDTestCase)
snapcraft.tests.test_lxd.LXDTestCase.test_wait_for_network_loops (local)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

Traceback (most recent call last):
  File "/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/tests/test_lxd.py", line 
122, in test_wait_for_network_loops
    "Command '['my-cmd']' returned non-zero exit status -1")
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 350, in 
assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in 
assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = "Command '['my-cmd']' died with <Signals.SIGHUP: 1>."
actual    = "Command '['my-cmd']' returned non-zero exit status -1"


======================================================================
FAIL: test_wait_for_network_loops (snapcraft.tests.test_lxd.LXDTestCase)
snapcraft.tests.test_lxd.LXDTestCase.test_wait_for_network_loops (remote)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

traceback-1: {{{
Traceback (most recent call last):
  File "/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/tests/test_lxd.py", line 
122, in test_wait_for_network_loops
    "Command '['my-cmd']' returned non-zero exit status -1")
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 350, in 
assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in 
assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = "Command '['my-cmd']' died with <Signals.SIGHUP: 1>."
actual    = "Command '['my-cmd']' returned non-zero exit status -1"
}}}


======================================================================
FAIL: test_wait_for_network_loops (snapcraft.tests.test_lxd.LXDTestCase)
snapcraft.tests.test_lxd.LXDTestCase.test_wait_for_network_loops (cross)
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  pythonlogging:''

traceback-2: {{{
Traceback (most recent call last):
  File "/<<BUILDDIR>>/snapcraft-2.31+17.10.1/snapcraft/tests/test_lxd.py", line 
122, in test_wait_for_network_loops
    "Command '['my-cmd']' returned non-zero exit status -1")
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 350, in 
assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 435, in 
assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = "Command '['my-cmd']' died with <Signals.SIGHUP: 1>."
actual    = "Command '['my-cmd']' returned non-zero exit status -1"
}}}

You'll need to fix this to get the next version into artful.

** Affects: snapcraft
     Importance: Undecided
         Status: New

** Affects: snapcraft (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ftbfs python3.6

** Also affects: snapcraft (Ubuntu)
   Importance: Undecided
       Status: New

** Tags added: ftbfs python3.6

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1699009

Title:
  fails tests with python 3.6

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapcraft/+bug/1699009/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to