gentoo/dev-python/sh/files/sh-1.12.9-python2-unicode-tests.patch
Patrick McLean bb73b416ef
dev-python/sh: Version bump to 1.12.9
Gentoo-Bug: 608016

Package-Manager: Portage-2.3.3, Repoman-2.3.1
2017-02-03 13:21:12 -08:00

23 lines
674 B
Diff

diff --git a/test.py b/test.py
index 78e00ab..0487594 100644
--- a/test.py
+++ b/test.py
@@ -502,7 +502,7 @@ for key in osx_cruft:
print(os.environ["HERP"] + " " + str(len(os.environ)))
""" % osx_cruft)
out = python(py.name, _env=env).strip()
- self.assertEqual(out, "DERP 1")
+ self.assertEqual(out, u"DERP 12")
py = create_tmp_test("""
import os, sys
@@ -515,7 +515,7 @@ for key in osx_cruft:
print(sh.HERP + " " + str(len(os.environ)))
""" % osx_cruft)
out = python(py.name, _env=env, _cwd=THIS_DIR).strip()
- self.assertEqual(out, "DERP 1")
+ self.assertEqual(out, u"DERP 12")
def test_which(self):