removed another related tests for romoved check

This commit is contained in:
Asif Saif Uddin 2025-04-29 16:56:47 +06:00
parent 5e33d90bf4
commit 88ff1e4c09

View file

@ -22,12 +22,6 @@ class TimezoneTests(SimpleTestCase):
self.assertTrue(timezone.is_naive(timezone.now()))
def test_localdate(self):
naive = datetime.datetime(2015, 1, 1, 0, 0, 1)
with self.assertRaisesMessage(
ValueError, "localtime() cannot be applied to a naive datetime"
):
timezone.localdate(naive, timezone=EAT)
aware = datetime.datetime(2015, 1, 1, 0, 0, 1, tzinfo=ICT)
self.assertEqual(
timezone.localdate(aware, timezone=EAT), datetime.date(2014, 12, 31)