]> git.pld-linux.org Git - packages/python-cliff.git/blame - python-cliff-py2-test.patch
- don't package tests; release 2
[packages/python-cliff.git] / python-cliff-py2-test.patch
CommitLineData
e74d25cf
JB
1It fails now - something changed in codecs or six?
2There is no fix to backport because cliff>=3 dropped py2 support
3--- cliff-2.18.0/cliff/tests/test_app.py.orig 2024-01-16 20:52:28.136254060 +0100
4+++ cliff-2.18.0/cliff/tests/test_app.py 2024-01-16 20:58:52.597504588 +0100
5@@ -525,18 +525,6 @@ class TestIO(base.TestBase):
6 text_utf8 = text.encode('utf-8')
7
8 if six.PY2:
9- # In PY2 StreamWriter can't accept non-ASCII encoded characters
10- # because it must first promote the encoded byte stream to
11- # unicode in order to encode it in the desired encoding.
12- # Because the encoding of the byte stream is not known at this
13- # point the default-encoding of ASCII is utilized, but you can't
14- # decode a non-ASCII charcater to ASCII.
15- io = six.StringIO()
16- writer = codecs.getwriter('utf-8')(io)
17- self.assertRaises(UnicodeDecodeError,
18- writer.write,
19- text_utf8)
20-
21 # In PY2 with our override of codecs.getwriter we do not
22 # attempt to encode bytes in a str object (only unicode
23 # objects) therefore the final output string should be the
This page took 0.181838 seconds and 4 git commands to generate.