summaryrefslogtreecommitdiff
path: root/debian/patches/skip_test_decode_error_handling.patch
blob: 84d1409fae621b3966c4780e3ffac66de7e3a256 (plain)
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
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