evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / wheel / 0001-tests-Rename-a-a-o-_-.py-_-.py.patch
blob8e70f0069d6547d2b0cce5093c05f11ed6152251
1 From 5879a4bbc34d1eb25e160b15b2f5a4f10eac6bd2 Mon Sep 17 00:00:00 2001
2 From: toonn <toonn@toonn.io>
3 Date: Mon, 13 Sep 2021 18:07:26 +0200
4 Subject: [PATCH] =?UTF-8?q?tests:=20Rename=20a=CC=8Aa=CC=88o=CC=88=5F?=
5 =?UTF-8?q?=E6=97=A5=E6=9C=AC=E8=AA=9E.py=20=3D>=20=C3=A6=C9=90=C3=B8=5F?=
6 =?UTF-8?q?=E6=97=A5=E6=9C=AC=E5=83=B9.py?=
7 MIME-Version: 1.0
8 Content-Type: text/plain; charset=UTF-8
9 Content-Transfer-Encoding: 8bit
11 `åäö_日本語.py` normalizes differently in NFC and NFD normal forms. This
12 means a hash generated for the source directory can differ depending on
13 whether or not the filesystem is normalizing and which normal form it
14 uses.
16 By renaming the file to `æɐø_日本價.py` we avoid this issue by using a
17 name that has the same encoding in each normal form.
18 ---
19 tests/test_bdist_wheel.py | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 diff --git a/tests/test_bdist_wheel.py b/tests/test_bdist_wheel.py
23 index 5a6db16..42cf121 100644
24 --- a/tests/test_bdist_wheel.py
25 +++ b/tests/test_bdist_wheel.py
26 @@ -69,7 +69,7 @@ def test_unicode_record(wheel_paths):
27 with ZipFile(path) as zf:
28 record = zf.read("unicode.dist-0.1.dist-info/RECORD")
30 - assert "åäö_日本語.py".encode() in record
31 + assert "æɐø_日本價.py".encode() in record
34 UTF8_PKG_INFO = """\