py3 unit test failures

Bug #1856354 reported by Corey Bryant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pypowervm
New
Undecided
Unassigned

Bug Description

I cloned the master branch of https://github.com/powervm/pypowervm and ran tox -e py37 and tox -e py38 with the failures listed below. Note tox.ini needed minor updates to run those versions of python, but the same tests also appear to fail on py36. Also worth noting setup.cfg is only showing py3 support up to 3.5, which is really old.

Programming Language :: Python :: 3.5

The following tests are failing for python3:

==============================
Failed 2 tests - output below:
==============================

pypowervm.tests.tasks.test_vterm.TestVterm.test_open_vnc_vterm_nonascii
-----------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/corey/pkg/ussuri/upstream/pypowervm/.tox/py37/lib/python3.7/site-packages/mock/mock.py", line 1330, in patched
        return func(*args, **keywargs)
      File "/home/corey/pkg/ussuri/upstream/pypowervm/pypowervm/tests/tasks/test_vterm.py", line 94, in test_open_vnc_vterm_nonascii
        vterm.open_localhost_vnc_vterm, self.adpt, '1', True)
      File "/home/corey/pkg/ussuri/upstream/pypowervm/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 485, in assertRaises
        self.assertThat(our_callable, matcher)
      File "/home/corey/pkg/ussuri/upstream/pypowervm/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: <function open_localhost_vnc_vterm at 0x7fb337211cb0> returned None

pypowervm.tests.tasks.test_vterm.TestVterm.test_open_vnc_vterm_nonvnc_noforce
-----------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/home/corey/pkg/ussuri/upstream/pypowervm/.tox/py37/lib/python3.7/site-packages/mock/mock.py", line 1330, in patched
        return func(*args, **keywargs)
      File "/home/corey/pkg/ussuri/upstream/pypowervm/pypowervm/tests/tasks/test_vterm.py", line 136, in test_open_vnc_vterm_nonvnc_noforce
        'lpar_uuid')
      File "/home/corey/pkg/ussuri/upstream/pypowervm/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 485, in assertRaises
        self.assertThat(our_callable, matcher)
      File "/home/corey/pkg/ussuri/upstream/pypowervm/.tox/py37/lib/python3.7/site-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: <function open_localhost_vnc_vterm at 0x7fb337211cb0> returned None

Tags: py38
description: updated
tags: added: py38
description: updated
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.