Skip to content

Commit c7293f4

Browse files
committed
MAINT: Condense TIMEZONE_IDS construction
Follow-up to gh-26596
1 parent c6a7cc1 commit c7293f4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pandas/conftest.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,8 @@ def unique_nulls_fixture(request):
376376
FixedOffset(0), FixedOffset(-300), timezone.utc,
377377
timezone(timedelta(hours=1)),
378378
timezone(timedelta(hours=-1), name='foo')]
379-
TIMEZONE_IDS = ['None', 'UTC', 'US/Eastern', 'Asia/Tokyp',
380-
'dateutil/US/Pacific', 'dateutil/Asia/Singapore',
381-
'dateutil.tz.tzutz()', 'dateutil.tz.tzlocal()',
382-
'pytz.FixedOffset(300)', 'pytz.FixedOffset(0)',
383-
'pytz.FixedOffset(-300)', 'datetime.timezone.utc',
384-
'datetime.timezone.+1', 'datetime.timezone.-1.named']
379+
TIMEZONE_IDS = [str(i) if not i or isinstance(i, str)
380+
else repr(i) for i in TIMEZONES]
385381

386382

387383
@td.parametrize_fixture_doc(str(TIMEZONE_IDS))

0 commit comments

Comments
 (0)