File pip-bigendian.patch of Package python-pip.17483

Index: pip-20.0.2/tests/unit/test_compat.py
===================================================================
--- pip-20.0.2.orig/tests/unit/test_compat.py
+++ pip-20.0.2/tests/unit/test_compat.py
@@ -92,7 +92,7 @@ def test_str_to_display__decode_error(mo
     data = u'ab'.encode('utf-16')
     actual = str_to_display(data)
 
-    assert actual == u'\\xff\\xfea\x00b\x00', (
+    assert actual == u'\\xfe\\xff\x00a\x00b', (
         # Show the encoding for easier troubleshooting.
         'encoding: {!r}'.format(locale.getpreferredencoding())
     )
Index: pip-20.0.2/tests/unit/test_utils.py
===================================================================
--- pip-20.0.2.orig/tests/unit/test_utils.py
+++ pip-20.0.2/tests/unit/test_utils.py
@@ -383,8 +383,9 @@ def test_rmtree_retries_for_3sec(tmpdir,
     # Test a bytes object with a character that can't be decoded.
     (u'/path/déf'.encode('utf-8'), 'ascii', u"b'/path/d\\xc3\\xa9f'"),
     (u'/path/déf'.encode('utf-16'), 'utf-8',
-     u"b'\\xff\\xfe/\\x00p\\x00a\\x00t\\x00h\\x00/"
-     "\\x00d\\x00\\xe9\\x00f\\x00'"),
+     u"b'\\xfe\\xff\\x00/\\x00p\\x00a\\x00t\\x00h\\x00/\\x00d\\x00\\xe9\\x00f'"),
+
+
 ])
 def test_path_to_display(monkeypatch, path, fs_encoding, expected):
     monkeypatch.setattr(sys, 'getfilesystemencoding', lambda: fs_encoding)
openSUSE Build Service is sponsored by