@@ -94,40 +94,11 @@ def test_customized_wheel(self):
9494 entry_point_contents = zf .read (
9595 "example_customized-0.0.1.dist-info/entry_points.txt"
9696 )
97- # The entries are guaranteed to be sorted.
98- if platform .system () == "Windows" :
99- self .assertEqual (
100- record_contents ,
101- b"""\
102- example_customized-0.0.1.dist-info/METADATA,sha256=pzE96o3Sp63TDzxAZgl0F42EFevm8x15vpDLqDVp_EQ,378
103- example_customized-0.0.1.dist-info/NOTICE,sha256=Xpdw-FXET1IRgZ_wTkx1YQfo1-alET0FVf6V1LXO4js,76
104- example_customized-0.0.1.dist-info/README,sha256=WmOFwZ3Jga1bHG3JiGRsUheb4UbLffUxyTdHczS27-o,40
105- example_customized-0.0.1.dist-info/RECORD,,
106- example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
107- example_customized-0.0.1.dist-info/entry_points.txt,sha256=pqzpbQ8MMorrJ3Jp0ntmpZcuvfByyqzMXXi2UujuXD0,137
108- examples/wheel/lib/data.txt,sha256=9vJKEdfLu8bZRArKLroPZJh1XKkK3qFMXiM79MBL2Sg,12
109- examples/wheel/lib/module_with_data.py,sha256=8s0Khhcqz3yVsBKv2IB5u4l4TMKh7-c_V6p65WVHPms,637
110- examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
111- examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
112- """ ,
113- )
114- else :
115- # TODO: The non-ascii characters in the METADATA file are interpreted differently on the
116- # ubuntu16_rbe hosts in comparison to other unix platforms. This should not be the case
117- # and the code should be updated to account for this.
118- rbe_expected_contents = b"""\
119- example_customized-0.0.1.dist-info/METADATA,sha256=pzE96o3Sp63TDzxAZgl0F42EFevm8x15vpDLqDVp_EQ,378
120- example_customized-0.0.1.dist-info/NOTICE,sha256=Xpdw-FXET1IRgZ_wTkx1YQfo1-alET0FVf6V1LXO4js,76
121- example_customized-0.0.1.dist-info/README,sha256=WmOFwZ3Jga1bHG3JiGRsUheb4UbLffUxyTdHczS27-o,40
122- example_customized-0.0.1.dist-info/RECORD,,
123- example_customized-0.0.1.dist-info/WHEEL,sha256=sobxWSyDDkdg_rinUth-jxhXHqoNqlmNMJY3aTZn2Us,91
124- example_customized-0.0.1.dist-info/entry_points.txt,sha256=pqzpbQ8MMorrJ3Jp0ntmpZcuvfByyqzMXXi2UujuXD0,137
125- examples/wheel/lib/data.txt,sha256=9vJKEdfLu8bZRArKLroPZJh1XKkK3qFMXiM79MBL2Sg,12
126- examples/wheel/lib/module_with_data.py,sha256=8s0Khhcqz3yVsBKv2IB5u4l4TMKh7-c_V6p65WVHPms,637
127- examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
128- examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
129- """
130- unix_expected_contents = b"""\
97+
98+ self .assertEqual (
99+ record_contents ,
100+ # The entries are guaranteed to be sorted.
101+ b"""\
131102 example_customized-0.0.1.dist-info/METADATA,sha256=TeeEmokHE2NWjkaMcVJuSAq4_AXUoIad2-SLuquRmbg,372
132103example_customized-0.0.1.dist-info/NOTICE,sha256=Xpdw-FXET1IRgZ_wTkx1YQfo1-alET0FVf6V1LXO4js,76
133104example_customized-0.0.1.dist-info/README,sha256=WmOFwZ3Jga1bHG3JiGRsUheb4UbLffUxyTdHczS27-o,40
@@ -138,15 +109,7 @@ def test_customized_wheel(self):
138109examples/wheel/lib/module_with_data.py,sha256=8s0Khhcqz3yVsBKv2IB5u4l4TMKh7-c_V6p65WVHPms,637
139110examples/wheel/lib/simple_module.py,sha256=z2hwciab_XPNIBNH8B1Q5fYgnJvQTeYf0ZQJpY8yLLY,637
140111examples/wheel/main.py,sha256=sgg5iWN_9inYBjm6_Zw27hYdmo-l24fA-2rfphT-IlY,909
141- """
142- self .assertIn (
143- record_contents ,
144- [
145- rbe_expected_contents ,
146- unix_expected_contents ,
147- ],
148- )
149-
112+ """ )
150113 self .assertEqual (
151114 wheel_contents ,
152115 b"""\
@@ -156,44 +119,9 @@ def test_customized_wheel(self):
156119Tag: py3-none-any
157120""" ,
158121 )
159- if platform .system () == "Windows" :
160- self .assertEqual (
161- metadata_contents ,
162- b"""\
163- Metadata-Version: 2.1
164- Name: example_customized
165- Version: 0.0.1
166- Author: Example Author with non-ascii characters: \xc3 \x85 \xc2 \xbc \xc3 \x83 \xc2 \xb3 \xc3 \x85 \xc2 \x82 w
167- Author-email: example@example.com
168- Home-page: www.example.com
169- License: Apache 2.0
170- Classifier: License :: OSI Approved :: Apache Software License
171- Classifier: Intended Audience :: Developers
172- Requires-Dist: pytest
173-
174- This is a sample description of a wheel.
175- """ ,
176- )
177- else :
178- # TODO: The non-ascii characters in the METADATA file are interpreted differently on the
179- # ubuntu16_rbe hosts in comparison to other unix platforms. This should not be the case
180- # and the code should be updated to account for this.
181- rbe_expected_contents = b"""\
182- Metadata-Version: 2.1
183- Name: example_customized
184- Version: 0.0.1
185- Author: Example Author with non-ascii characters: \xc3 \x85 \xc2 \xbc \xc3 \x83 \xc2 \xb3 \xc3 \x85 \xc2 \x82 w
186- Author-email: example@example.com
187- Home-page: www.example.com
188- License: Apache 2.0
189- Classifier: License :: OSI Approved :: Apache Software License
190- Classifier: Intended Audience :: Developers
191- Requires-Dist: pytest
192-
193- This is a sample description of a wheel.
194- """
195-
196- unix_expected_contents = b"""\
122+ self .assertEqual (
123+ metadata_contents ,
124+ b"""\
197125 Metadata-Version: 2.1
198126Name: example_customized
199127Version: 0.0.1
@@ -206,14 +134,7 @@ def test_customized_wheel(self):
206134Requires-Dist: pytest
207135
208136This is a sample description of a wheel.
209- """
210- self .assertIn (
211- metadata_contents ,
212- [
213- rbe_expected_contents ,
214- unix_expected_contents ,
215- ],
216- )
137+ """ )
217138 self .assertEqual (
218139 entry_point_contents ,
219140 b"""\
0 commit comments