[Bug 1923626] Re: Mismatch error in test_barbican.py
Launchpad Bug Tracker
1923626 at bugs.launchpad.net
Tue May 11 20:36:36 UTC 2021
This bug was fixed in the package python-barbicanclient - 5.0.1-0ubuntu2
---------------
python-barbicanclient (5.0.1-0ubuntu2) impish; urgency=medium
* Update test_barbican.py to compare None instead of 0 (LP: #1923626)
-- Heather Ellsworth <heather.ellsworth at canonical.com> Wed, 14 Apr
2021 14:18:00 +0000
** Changed in: python-barbicanclient (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-barbicanclient in Ubuntu.
https://bugs.launchpad.net/bugs/1923626
Title:
Mismatch error in test_barbican.py
Status in python-barbicanclient package in Ubuntu:
Fix Released
Bug description:
Package: python-barbicanclient
Failure: https://launchpadlibrarian.net/533116706/buildlog_ubuntu-hirsute-amd64.python-barbicanclient_5.0.1-0ubuntu1_BUILDING.txt.gz
The test_barbican.py is failing because it's trying to compare 0
instead of None.
FAIL: barbicanclient.tests.test_barbican.WhenTestingBarbicanCLI.test_should_show_usage_with_help_flag
barbicanclient.tests.test_barbican.WhenTestingBarbicanCLI.test_should_show_usage_with_help_flag
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/barbicanclient/tests/test_barbican.py", line 53, in test_should_show_usage_with_help_flag
self.assertEqual(0, e.code)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 415, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 502, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: 0 != None
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-barbicanclient/+bug/1923626/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list