Skip to content

Commit 397a5f3

Browse files
committed
gh-120266: Fix undefined _utcfromtimestamp name in datetimetested
1 parent 55402d3 commit 397a5f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/datetimetester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6223,7 +6223,7 @@ def nondst_folds(self):
62236223
for (_, prev_ti), (t, ti) in pairs(zip(self.ut, self.ti)):
62246224
shift = ti[0] - prev_ti[0]
62256225
if shift < ZERO and ti[1] == prev_ti[1]:
6226-
yield _utcfromtimestamp(datetime, t,), -shift, prev_ti[2], ti[2]
6226+
yield datetime.fromtimestamp(t, datetime.UTC), -shift, prev_ti[2], ti[2]
62276227

62286228
@classmethod
62296229
def print_all_nondst_folds(cls, same_abbr=False, start_year=1):

0 commit comments

Comments
 (0)