Skip to content

Commit fbe923d

Browse files
committed
Update test_handle_exclude_newer_than_naive_dates comparison
1 parent 6ff91a4 commit fbe923d

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

tests/unit/test_cmdoptions.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,7 @@ def test_handle_exclude_newer_than_naive_dates(
121121
assert isinstance(result, datetime.datetime)
122122

123123
# Check that the date/time components match
124-
(
125-
expected_year,
126-
expected_month,
127-
expected_day,
128-
expected_hour,
129-
expected_minute,
130-
expected_second,
131-
) = expected_date_time
132-
assert result.year == expected_year
133-
assert result.month == expected_month
134-
assert result.day == expected_day
135-
assert result.hour == expected_hour
136-
assert result.minute == expected_minute
137-
assert result.second == expected_second
124+
assert result.timetuple()[:6] == expected_date_time
138125

139126
# Check that local timezone was applied (result should not be timezone-naive)
140127
assert result.tzinfo is not None

0 commit comments

Comments
 (0)