@@ -6160,7 +6160,7 @@ class TZInfoSubclass(tzinfo):
61606160 def test_date_from_date (self ):
61616161 exp_date = date (1993 , 8 , 26 )
61626162
6163- for macro in [ 0 , 1 ] :
6163+ for macro in False , True :
61646164 with self .subTest (macro = macro ):
61656165 c_api_date = _testcapi .get_date_fromdate (
61666166 macro ,
@@ -6173,7 +6173,7 @@ def test_date_from_date(self):
61736173 def test_datetime_from_dateandtime (self ):
61746174 exp_date = datetime (1993 , 8 , 26 , 22 , 12 , 55 , 99999 )
61756175
6176- for macro in [ 0 , 1 ] :
6176+ for macro in False , True :
61776177 with self .subTest (macro = macro ):
61786178 c_api_date = _testcapi .get_datetime_fromdateandtime (
61796179 macro ,
@@ -6191,7 +6191,7 @@ def test_datetime_from_dateandtimeandfold(self):
61916191 exp_date = datetime (1993 , 8 , 26 , 22 , 12 , 55 , 99999 )
61926192
61936193 for fold in [0 , 1 ]:
6194- for macro in [ 0 , 1 ] :
6194+ for macro in False , True :
61956195 with self .subTest (macro = macro , fold = fold ):
61966196 c_api_date = _testcapi .get_datetime_fromdateandtimeandfold (
61976197 macro ,
@@ -6210,7 +6210,7 @@ def test_datetime_from_dateandtimeandfold(self):
62106210 def test_time_from_time (self ):
62116211 exp_time = time (22 , 12 , 55 , 99999 )
62126212
6213- for macro in [ 0 , 1 ] :
6213+ for macro in False , True :
62146214 with self .subTest (macro = macro ):
62156215 c_api_time = _testcapi .get_time_fromtime (
62166216 macro ,
@@ -6225,7 +6225,7 @@ def test_time_from_timeandfold(self):
62256225 exp_time = time (22 , 12 , 55 , 99999 )
62266226
62276227 for fold in [0 , 1 ]:
6228- for macro in [ 0 , 1 ] :
6228+ for macro in False , True :
62296229 with self .subTest (macro = macro , fold = fold ):
62306230 c_api_time = _testcapi .get_time_fromtimeandfold (
62316231 macro ,
@@ -6241,7 +6241,7 @@ def test_time_from_timeandfold(self):
62416241 def test_delta_from_dsu (self ):
62426242 exp_delta = timedelta (26 , 55 , 99999 )
62436243
6244- for macro in [ 0 , 1 ] :
6244+ for macro in False , True :
62456245 with self .subTest (macro = macro ):
62466246 c_api_delta = _testcapi .get_delta_fromdsu (
62476247 macro ,
@@ -6254,7 +6254,7 @@ def test_delta_from_dsu(self):
62546254 def test_date_from_timestamp (self ):
62556255 ts = datetime (1995 , 4 , 12 ).timestamp ()
62566256
6257- for macro in [ 0 , 1 ] :
6257+ for macro in False , True :
62586258 with self .subTest (macro = macro ):
62596259 d = _testcapi .get_date_fromtimestamp (int (ts ), macro )
62606260
@@ -6272,7 +6272,7 @@ def test_datetime_from_timestamp(self):
62726272
62736273 from_timestamp = _testcapi .get_datetime_fromtimestamp
62746274 for case in cases :
6275- for macro in [ 0 , 1 ] :
6275+ for macro in False , True :
62766276 with self .subTest (case = case , macro = macro ):
62776277 dtup , tzinfo , usetz = case
62786278 dt_orig = datetime (* dtup , tzinfo = tzinfo )
0 commit comments