|
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 |
|
16 | 14 | hypothesis.settings.register_profile(
|
@@ -376,28 +374,20 @@ def unique_nulls_fixture(request):
|
376 | 374 | FixedOffset(0), FixedOffset(-300), timezone.utc,
|
377 | 375 | timezone(timedelta(hours=1)),
|
378 | 376 | 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'] |
385 | 377 |
|
386 | 378 |
|
387 |
| -@td.parametrize_fixture_doc(str(TIMEZONE_IDS)) |
388 |
| -@pytest.fixture(params=TIMEZONES, ids=TIMEZONE_IDS) |
| 379 | +@pytest.fixture(params=TIMEZONES, ids=repr) |
389 | 380 | def tz_naive_fixture(request):
|
390 | 381 | """
|
391 |
| - Fixture for trying timezones including default (None): {0} |
| 382 | + Fixture for trying timezones including default (None) |
392 | 383 | """
|
393 | 384 | return request.param
|
394 | 385 |
|
395 | 386 |
|
396 |
| -@td.parametrize_fixture_doc(str(TIMEZONE_IDS[1:])) |
397 |
| -@pytest.fixture(params=TIMEZONES[1:], ids=TIMEZONE_IDS[1:]) |
| 387 | +@pytest.fixture(params=TIMEZONES[1:], ids=repr) |
398 | 388 | def tz_aware_fixture(request):
|
399 | 389 | """
|
400 |
| - Fixture for trying explicit timezones: {0} |
| 390 | + Fixture for trying explicit timezones |
401 | 391 | """
|
402 | 392 | return request.param
|
403 | 393 |
|
|
0 commit comments