summaryrefslogtreecommitdiff
path: root/tests/timezones
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-26 13:36:47 +0200
committerGitHub <noreply@github.com>2022-09-26 13:36:47 +0200
commitf4e592e3837f0625bf5327cc8ce8444279b4deb3 (patch)
tree7258d0891c34ea27ba22f11f3ac021479de2f67c /tests/timezones
parent3fb9c74d134ffe9a14ac3349e7652cd8b022db15 (diff)
downloaddjango-f4e592e3837f0625bf5327cc8ce8444279b4deb3.tar.gz
Removed unnecessary MySQL workaround in timezones tests.
Unnecessary since 22da5f8817ffff3917bcf8a652dce84f382c9202.
Diffstat (limited to 'tests/timezones')
-rw-r--r--tests/timezones/tests.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/timezones/tests.py b/tests/timezones/tests.py
index f2617f4d0f..7ed8c1bb12 100644
--- a/tests/timezones/tests.py
+++ b/tests/timezones/tests.py
@@ -1497,18 +1497,14 @@ class AdminTests(TestCase):
@requires_tz_support
def test_change_readonly(self):
- Timestamp.objects.create()
- # re-fetch the object for backends that lose microseconds (MySQL)
- t = Timestamp.objects.get()
+ t = Timestamp.objects.create()
response = self.client.get(
reverse("admin_tz:timezones_timestamp_change", args=(t.pk,))
)
self.assertContains(response, t.created.astimezone(EAT).isoformat())
def test_change_readonly_in_other_timezone(self):
- Timestamp.objects.create()
- # re-fetch the object for backends that lose microseconds (MySQL)
- t = Timestamp.objects.get()
+ t = Timestamp.objects.create()
with timezone.override(ICT):
response = self.client.get(
reverse("admin_tz:timezones_timestamp_change", args=(t.pk,))