|
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,24 +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 = [str(i) if not i or isinstance(i, str) |
380 | | - else repr(i) for i in TIMEZONES] |
381 | 377 |
|
382 | 378 |
|
383 | | -@td.parametrize_fixture_doc(str(TIMEZONE_IDS)) |
384 | | -@pytest.fixture(params=TIMEZONES, ids=TIMEZONE_IDS) |
| 379 | +@pytest.fixture(params=TIMEZONES, ids=repr) |
385 | 380 | def tz_naive_fixture(request): |
386 | 381 | """ |
387 | | - Fixture for trying timezones including default (None): {0} |
| 382 | + Fixture for trying timezones including default (None) |
388 | 383 | """ |
389 | 384 | return request.param |
390 | 385 |
|
391 | 386 |
|
392 | | -@td.parametrize_fixture_doc(str(TIMEZONE_IDS[1:])) |
393 | | -@pytest.fixture(params=TIMEZONES[1:], ids=TIMEZONE_IDS[1:]) |
| 387 | +@pytest.fixture(params=TIMEZONES[1:], ids=repr) |
394 | 388 | def tz_aware_fixture(request): |
395 | 389 | """ |
396 | | - Fixture for trying explicit timezones: {0} |
| 390 | + Fixture for trying explicit timezones |
397 | 391 | """ |
398 | 392 | return request.param |
399 | 393 |
|
|
0 commit comments