@@ -166,20 +166,19 @@ def test_platforms_regex_structure(
166166 for pre_version_sign , minor_versions in zip (['>' , '<' , ">=" , "<=" , '' ], versions_list ):
167167 for minor_version in minor_versions :
168168 version = 30 + minor_version
169- for py_string in ["Py" , "PY" , "py" ]:
170- for impl in ignore_implementations :
171- # for post_version_sign in ['+', '']:
172- for plat in ignore_platforms :
169+ for impl in ignore_implementations :
170+ # for post_version_sign in ['+', '']:
171+ for plat in ignore_platforms :
173172
174- test_string = f"#{ space } { pragma_string } :{ space } { no_string } { space } { cover_string } { space } ({ pre_version_sign } { py_string } { version } { post_version_sign } { plat } { impl } )"
175- print ('.' , end = '' )
176- sys .stdout .flush ()
177- # print(f"[{counter} TESTING: {test_string}]")
173+ test_string = f"#{ space } { pragma_string } :{ space } { no_string } { space } { cover_string } { space } ({ pre_version_sign } { py_string } { version } { post_version_sign } { plat } { impl } )"
174+ print ('.' , end = '' )
175+ sys .stdout .flush ()
176+ # print(f"[{counter} TESTING: {test_string}]")
178177
179- if not any ([re .match (pattern .pattern , test_string ) for pattern in regexes ]):
180- raise AssertionError (f"[{ counter } FAIL: { test_string } ]" )
178+ if not any ([re .match (pattern .pattern , test_string ) for pattern in regexes ]):
179+ raise AssertionError (f"[{ counter } FAIL: { test_string } ]" )
181180
182- counter += 1
181+ counter += 1
183182
184183 print (f"Ran { counter } tests" )
185184
@@ -230,20 +229,19 @@ def test_platforms_regex_spaces(
230229 for pre_version_sign , minor_versions in zip (['>' , '<' , ">=" , "<=" , '' ], versions_list ):
231230 for minor_version in minor_versions :
232231 version = 30 + minor_version
233- for py_string in ["Py" , "PY" , "py" ]:
234- for impl in ignore_implementations :
235- # for post_version_sign in ['+', '']:
236- for plat in ignore_platforms :
232+ for impl in ignore_implementations :
233+ # for post_version_sign in ['+', '']:
234+ for plat in ignore_platforms :
237235
238- test_string = f"{ comment_string } { pragma_string } { post_pragma_space } { no_string } { post_no_space } { cover_string } { post_cover_space } ({ pre_version_sign } { py_string } { version } { post_version_sign } { plat } { impl } )"
239- print ('.' , end = '' )
240- sys .stdout .flush ()
241- # print(f"[{counter} TESTING: {test_string}]")
236+ test_string = f"{ comment_string } { pragma_string } { post_pragma_space } { no_string } { post_no_space } { cover_string } { post_cover_space } ({ pre_version_sign } { py_string } { version } { post_version_sign } { plat } { impl } )"
237+ print ('.' , end = '' )
238+ sys .stdout .flush ()
239+ # print(f"[{counter} TESTING: {test_string}]")
242240
243- if not any ([re .match (pattern .pattern , test_string ) for pattern in regexes ]):
244- raise AssertionError (f"[{ counter } FAIL: { test_string } ]" )
241+ if not any ([re .match (pattern .pattern , test_string ) for pattern in regexes ]):
242+ raise AssertionError (f"[{ counter } FAIL: { test_string } ]" )
245243
246- counter += 1
244+ counter += 1
247245
248246 print (f"Ran { counter } tests" )
249247
0 commit comments