summaryrefslogtreecommitdiff
path: root/debian/patches/skip_test_decode_error_handling.patch
diff options
context:
space:
mode:
authorBen Carrillo <ben@futeisha.org>2013-02-12 05:16:41 +0900
committerBen Carrillo <ben@futeisha.org>2013-02-12 05:16:41 +0900
commite258596fbb3ed2d861cd7af7f9d59de5061f46f6 (patch)
tree05e554af6592d781948b91e7c5671a0e15257141 /debian/patches/skip_test_decode_error_handling.patch
parentae6f81b0dda76477af59da7ba1569786d67fcac1 (diff)
patch unicode and failing tests on chroot
Diffstat (limited to 'debian/patches/skip_test_decode_error_handling.patch')
-rw-r--r--debian/patches/skip_test_decode_error_handling.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/skip_test_decode_error_handling.patch b/debian/patches/skip_test_decode_error_handling.patch
new file mode 100644
index 0000000..84d1409
--- /dev/null
+++ b/debian/patches/skip_test_decode_error_handling.patch
@@ -0,0 +1,29 @@
+Description: skip failing test test_decode_error_handling fails with python3 when preferred encoding is ascii
+Author: Ben Carrillo <ben@futeisha.org>
+Bug: https://github.com/amoffat/sh/issues/124
+Forwarded: yes
+--- a/test.py
++++ b/test.py
+@@ -1329,22 +1329,6 @@
+ p = ls(_no_pipe=True)
+ self.assertTrue(p.process._pipe_queue.empty())
+
+-
+- def test_decode_error_handling(self):
+- from functools import partial
+-
+- py = create_tmp_test("""
+-# -*- coding: utf8 -*-
+-import sys
+-sys.stdout.write("te漢字st")
+-""")
+- #fn = partial(python, py.name, _encoding="ascii")
+- #def s(fn): str(fn())
+- #self.assertRaises(UnicodeDecodeError, s, fn)
+-
+- p = python(py.name, _encoding="ascii", _decode_errors="ignore")
+- self.assertEqual(p, "test")
+-
+
+ def test_shared_secial_args(self):
+ import sh