1313# limitations under the License.
1414
1515import os
16+ import platform
1617import unittest
1718import zipfile
1819
@@ -89,9 +90,24 @@ def test_customized_wheel(self):
8990 "example_customized-0.0.1.dist-info/entry_points.txt"
9091 )
9192 # The entries are guaranteed to be sorted.
92- self .assertEquals (
93- record_contents ,
94- b"""\
93+ if platform .system () == "Windows" :
94+ self .assertEquals (
95+ record_contents ,
96+ b"""\
97+ example_customized-0.0.1.dist-info/METADATA,sha256=pzE96o3Sp63TDzxAZgl0F42EFevm8x15vpDLqDVp_EQ,378
98+ example_customized-0.0.1.dist-info/RECORD,,
99+ example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
100+ example_customized-0.0.1.dist-info/entry_points.txt,sha256=pqzpbQ8MMorrJ3Jp0ntmpZcuvfByyqzMXXi2UujuXD0,137
101+ examples/wheel/lib/data.txt,sha256=9vJKEdfLu8bZRArKLroPZJh1XKkK3qFMXiM79MBL2Sg,12
102+ examples/wheel/lib/module_with_data.py,sha256=8s0Khhcqz3yVsBKv2IB5u4l4TMKh7-c_V6p65WVHPms,637
103+ examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
104+ examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
105+ """ ,
106+ )
107+ else :
108+ self .assertEquals (
109+ record_contents ,
110+ b"""\
95111 example_customized-0.0.1.dist-info/METADATA,sha256=TeeEmokHE2NWjkaMcVJuSAq4_AXUoIad2-SLuquRmbg,372
96112example_customized-0.0.1.dist-info/RECORD,,
97113example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
@@ -101,7 +117,7 @@ def test_customized_wheel(self):
101117examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
102118examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
103119""" ,
104- )
120+ )
105121 self .assertEquals (
106122 wheel_contents ,
107123 b"""\
@@ -111,9 +127,28 @@ def test_customized_wheel(self):
111127Tag: py3-none-any
112128""" ,
113129 )
114- self .assertEquals (
115- metadata_contents ,
116- b"""\
130+ if platform .system () == "Windows" :
131+ self .assertEquals (
132+ metadata_contents ,
133+ b"""\
134+ Metadata-Version: 2.1
135+ Name: example_customized
136+ Version: 0.0.1
137+ Author: Example Author with non-ascii characters: \xc3 \x85 \xc2 \xbc \xc3 \x83 \xc2 \xb3 \xc3 \x85 \xc2 \x82 w
138+ 139+ Home-page: www.example.com
140+ License: Apache 2.0
141+ Classifier: License :: OSI Approved :: Apache Software License
142+ Classifier: Intended Audience :: Developers
143+ Requires-Dist: pytest
144+
145+ This is a sample description of a wheel.
146+ """ ,
147+ )
148+ else :
149+ self .assertEquals (
150+ metadata_contents ,
151+ b"""\
117152 Metadata-Version: 2.1
118153Name: example_customized
119154Version: 0.0.1
@@ -127,7 +162,7 @@ def test_customized_wheel(self):
127162
128163This is a sample description of a wheel.
129164""" ,
130- )
165+ )
131166 self .assertEquals (
132167 entry_point_contents ,
133168 b"""\
0 commit comments