Project

Profile

Help

Issue #1719

closed

Test failure on EL6: ValueError: zero length field name in format

Added by rbarlow about 8 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
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 #1

Updated by rbarlow about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to rbarlow
  • Triaged changed from No to Yes
  • Tags Easy Fix added

I'm going to go ahead and fix this since it causes Jenkies failures and it's easy.

Added by rbarlow about 8 years ago

Revision cd48d8ab | View on GitHub

Use a Python 2.6 friendly string format syntax.

https://pulp.plan.io/issues/1719

fixes #1719

Actions #2

Updated by rbarlow about 8 years ago

  • Status changed from ASSIGNED to POST
Actions #3

Updated by rbarlow about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #4

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from MODIFIED to 5
Actions #5

Updated by rbarlow about 8 years ago

  • Status changed from 5 to 6

Jenkies can verify that the unit tests pass on all supported platforms.

Actions #6

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #8

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added
Actions #9

Updated by kosherindia almost 5 years ago

  • File logo-blog2.jpg added
Actions #10

Updated by ttereshc almost 5 years ago

  • File deleted (logo-blog2.jpg)

Also available in: Atom PDF