Actions
Issue #1719
closedTest failure on EL6: ValueError: zero length field name in format
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
master
Platform Release:
Target Release - Python:
1.1.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:
Description
I believe this change might be new in the Pulp 2.8 distribution.
Traceback (most recent call last):
File "/usr/lib64/python2.6/unittest.py", line 278, in run
testMethod()
File "/home/jenkins/workspace/unittest-pulp_python-pr/node-type/rhel6-np/plugin/plugins/test/unit/plugins/test_models.py", line 594, in test___repr__
self.assertEqual(repr(pp), 'Package(name=foo, version=1.0.0)')
File "/home/jenkins/workspace/unittest-pulp_python-pr/node-type/rhel6-np/plugin/plugins/pulp_python/plugins/models.py", line 183, in __repr__
return 'Package(name={}, version={})'.format(self.name, self.version)
ValueError: zero length field name in format
Actions
Use a Python 2.6 friendly string format syntax.
https://pulp.plan.io/issues/1719
fixes #1719