Fails test under python 3.6

Bug #1728126 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
proliantutils
New
Undecided
Unassigned

Bug Description

Under Python 3.6, there's the below issue with unit tests when building the Debian package. Note that for me, it worked in Python 2.7 and 3.5.

======================================================================
FAIL: proliantutils.tests.ilo.test_firmware_controller.FirmwareImageExtractorTestCase.test_successive_calls_to_extract_method
proliantutils.tests.ilo.test_firmware_controller.FirmwareImageExtractorTestCase.test_successive_calls_to_extract_method
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/zigo/sources/openstack/pike/python-proliantutils/build-area/python-proliantutils-2.4.1/proliantutils/tests/ilo/test_firmware_controller.py", line 473, in test_successive_calls_to_extract_method
    raw_fw_file, is_extracted = fw_img_extractor.extract()
  File "/home/zigo/sources/openstack/pike/python-proliantutils/build-area/python-proliantutils-2.4.1/proliantutils/ilo/firmware_controller.py", line 273, in extract
    extract_path = os.path.join(temp_dir, self.fw_filename)
  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

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.