|
9 | 9 | import pytest |
10 | 10 | from pytz import FixedOffset, utc |
11 | 11 |
|
12 | | -import pandas.util._test_decorators as td |
13 | | - |
14 | 12 | import pandas as pd |
15 | 13 | from pandas import DataFrame |
16 | 14 | import pandas.util.testing as tm |
@@ -378,28 +376,20 @@ def unique_nulls_fixture(request): |
378 | 376 | FixedOffset(0), FixedOffset(-300), timezone.utc, |
379 | 377 | timezone(timedelta(hours=1)), |
380 | 378 | timezone(timedelta(hours=-1), name='foo')] |
381 | | -TIMEZONE_IDS = ['None', 'UTC', 'US/Eastern', 'Asia/Tokyp', |
382 | | - 'dateutil/US/Pacific', 'dateutil/Asia/Singapore', |
383 | | - 'dateutil.tz.tzutz()', 'dateutil.tz.tzlocal()', |
384 | | - 'pytz.FixedOffset(300)', 'pytz.FixedOffset(0)', |
385 | | - 'pytz.FixedOffset(-300)', 'datetime.timezone.utc', |
386 | | - 'datetime.timezone.+1', 'datetime.timezone.-1.named'] |
387 | 379 |
|
388 | 380 |
|
389 | | -@td.parametrize_fixture_doc(str(TIMEZONE_IDS)) |
390 | | -@pytest.fixture(params=TIMEZONES, ids=TIMEZONE_IDS) |
| 381 | +@pytest.fixture(params=TIMEZONES, ids=repr) |
391 | 382 | def tz_naive_fixture(request): |
392 | 383 | """ |
393 | | - Fixture for trying timezones including default (None): {0} |
| 384 | + Fixture for trying timezones including default (None) |
394 | 385 | """ |
395 | 386 | return request.param |
396 | 387 |
|
397 | 388 |
|
398 | | -@td.parametrize_fixture_doc(str(TIMEZONE_IDS[1:])) |
399 | | -@pytest.fixture(params=TIMEZONES[1:], ids=TIMEZONE_IDS[1:]) |
| 389 | +@pytest.fixture(params=TIMEZONES[1:], ids=repr) |
400 | 390 | def tz_aware_fixture(request): |
401 | 391 | """ |
402 | | - Fixture for trying explicit timezones: {0} |
| 392 | + Fixture for trying explicit timezones |
403 | 393 | """ |
404 | 394 | return request.param |
405 | 395 |
|
|
0 commit comments