mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #24558 -- Made dumpdata mapping ordering deterministic.
Thanks to gfairchild for the report and Claude for the review.
This commit is contained in:
parent
147ac85613
commit
5bc3123479
6 changed files with 69 additions and 17 deletions
|
@ -594,7 +594,7 @@ class SerializationTests(TestCase):
|
|||
def assert_yaml_contains_datetime(self, yaml, dt):
|
||||
# Depending on the yaml dumper, '!timestamp' might be absent
|
||||
six.assertRegex(self, yaml,
|
||||
r"- fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt))
|
||||
r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt))
|
||||
|
||||
def test_naive_datetime(self):
|
||||
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue