Bug 1759938 - unittest: TypeError: unicode argument expected, got 'str'
Summary: unittest: TypeError: unicode argument expected, got 'str'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: imgbased
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.0
: 1.2.6
Assignee: Yuval Turgeman
QA Contact: Sandro Bonazzola
URL:
Whiteboard:
Depends On:
Blocks: 1696701
TreeView+ depends on / blocked
 
Reported: 2019-10-09 13:02 UTC by Sandro Bonazzola
Modified: 2020-05-20 20:00 UTC (History)
11 users (show)

Fixed In Version: imgbased-1.2.6
Clone Of:
Environment:
Last Closed: 2020-05-20 20:00:10 UTC
oVirt Team: Node
Embargoed:
sbonazzo: ovirt-4.4?
cshao: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 103999 0 None MERGED py3: use io.StringIO instead of StringIO.StringIO 2020-05-21 02:04:05 UTC
oVirt gerrit 104464 0 'None' MERGED build: fix nosetest checks with python3 2020-05-21 02:04:05 UTC

Description Sandro Bonazzola 2019-10-09 13:02:32 UTC
While building imgbased:  https://jenkins.ovirt.org/job/imgbased_standard-check-patch/471//artifact/check-patch.el7.x86_64/mock_logs/script/stdout_stderr.log triggered by https://gerrit.ovirt.org/103999

======================================================================
ERROR: test_base_add (testSanity.BaseVerbTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/tests/testSanity.py", line 142, in test_base_add
    print(self.cli("layout", "--bases").stdout)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/tests/testSanity.py", line 57, in cli
    CliApplication(args)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/src/imgbased/__init__.py", line 82, in CliApplication
    app.hooks.emit("post-arg-parse", args)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/src/imgbased/hooks.py", line 120, in emit
    cb(self.context, *args)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/src/imgbased/plugins/core.py", line 178, in post_argparse
    print("\n".join(str(b) for b in layout.list_bases()))
TypeError: unicode argument expected, got 'str'

Comment 1 Sandro Bonazzola 2020-05-20 20:00:10 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.