py38 unit test failures

Bug #1857024 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Murano
Fix Released
Undecided
Unassigned

Bug Description

murano has some py38 unit test failures. This can be tested with python 3.8 on ubuntu bionic. basepython may need to be updated to point directly to python3.8 in tox.ini.

Tags: py38
Revision history for this message
Corey Bryant (corey.bryant) wrote :

The following unit tests are failing for tox -e py38. This can be tested on ubuntu bionic.

======================================================================
FAIL: murano.tests.unit.common.test_wsgi.TestXMLDictSerializer.test_XML_Dict_Serializer_create_link_nodes
murano.tests.unit.common.test_wsgi.TestXMLDictSerializer.test_XML_Dict_Serializer_create_link_nodes
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/murano/tests/unit/common/test_wsgi.py", line 375, in test_XML_Dict_Serializer_create_link_nodes
    self.assertEqual('<atom:link href="href" rel="rel" type="type"/>',
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = '<atom:link href="href" rel="rel" type="type"/>'
actual = '<atom:link rel="rel" href="href" type="type"/>'

======================================================================
FAIL: murano.tests.unit.engine.test_package_loader.TestCombinedPackageLoader.test_export_fixation_table
murano.tests.unit.engine.test_package_loader.TestCombinedPackageLoader.test_export_fixation_table
----------------------------------------------------------------------
testtools.testresult.real._StringException: pythonlogging:'murano': {{{Loaded package from path /<<PKGBUILDDIR>>/murano/tests/unit/engine/meta}}}

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/murano/tests/unit/engine/test_package_loader.py", line 617, in test_export_fixation_table
    self.assertEqual(sorted(expected_table.items()),
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 411, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 498, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [('test_package_1', ['1.1.1']), ('test_package_2', ['2.2.2', '3.3.3'])]
actual = [('test_package_1', ['1.1.1']), ('test_package_2', ['3.3.3', '2.2.2'])]

tags: added: py38
description: updated
zhurong (zhu-rong)
Changed in murano:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.