diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-02-10 00:34:14 +0200 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2022-02-10 00:34:14 +0200 |
commit | 222ba495202c02977a1af97709dc83d1f8d7cc44 (patch) | |
tree | 57ff31cecc1cc5d5beb38a58b0b73d90d277012d /tests/test_util.py | |
parent | 885ed761917c49a2b5433f05112fb5e2e6d99302 (diff) | |
download | apscheduler-222ba495202c02977a1af97709dc83d1f8d7cc44.tar.gz |
Fixed pytz deprecation warnings
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index ab10f50..f7f900b 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -148,11 +148,6 @@ class TestConvertToDatetime(object): returned = convert_to_datetime('2009-8-1', 'UTC', None) assert returned == datetime(2009, 8, 1, tzinfo=pytz.utc) - def test_bad_timezone(self): - exc = pytest.raises(TypeError, convert_to_datetime, '2009-8-1', tzinfo(), None) - assert str(exc.value) == ('Only pytz timezones are supported (need the localize() and ' - 'normalize() methods)') - def test_datetime_to_utc_timestamp(timezone): dt = timezone.localize(datetime(2014, 3, 12, 5, 40, 13, 254012)) |