1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Description: Fix unicode strings in pbr/tests/test_setup.py
Avoids failure in Python 3.2.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2014-04-11
--- python-pbr-0.8.2.orig/pbr/tests/test_setup.py
+++ python-pbr-0.8.2/pbr/tests/test_setup.py
@@ -21,6 +21,7 @@ from __future__ import print_function
import os
import sys
import tempfile
+import six
try:
import cStringIO as io
@@ -145,10 +146,10 @@ class GitLogsTest(base.BaseTestCase):
self.assertNotIn('Merge "', changelog_contents)
def test_generate_authors(self):
- author_old = u"Foo Foo <email@foo.com>"
- author_new = u"Bar Bar <email@bar.com>"
- co_author = u"Foo Bar <foo@bar.com>"
- co_author_by = u"Co-authored-by: " + co_author
+ author_old = six.u("Foo Foo <email@foo.com>")
+ author_new = six.u("Bar Bar <email@bar.com>")
+ co_author = six.u("Foo Bar <foo@bar.com>")
+ co_author_by = six.u("Co-authored-by: ") + co_author
git_log_cmd = (
"git --git-dir=%s log --format=%%aN <%%aE>"
|