#23477: test failures run from 1.7; test_serialize, test_simple_migration
-----------------------------------+--------------------
Reporter: idella | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
There's another issue opened a week ago re test_serialize however the
commit/patch that declares the fix doesn't take.
{{{
#!python
======================================================================
ERROR: test_serialize (migrations.test_writer.WriterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/tests/migrations/test_writer.py", line
93, in test_serialize
self.assertSerializedEqual(datetime.datetime.utcnow)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/tests/migrations/test_writer.py", line
52, in assertSerializedEqual
self.assertEqual(self.serialize_round_trip(value), value)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/tests/migrations/test_writer.py", line
48, in serialize_round_trip
string, imports = MigrationWriter.serialize(value)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
380, in serialize
raise ValueError("Cannot serialize: %r\nThere are some values Django
cannot serialize into migration files.\nFor more, see
https://docs.djangoproject.com/en/dev/topics/migrations/#migration-
serializing" % value)
ValueError: Cannot serialize: <bound method type.utcnow of <class
'datetime.datetime'>>
There are some values Django cannot serialize into migration files.
For more, see https://docs.djangoproject.com/en/dev/topics/migrations
/#migration-serializing
======================================================================
ERROR: test_simple_migration (migrations.test_writer.WriterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/tests/migrations/test_writer.py", line
244, in test_simple_migration
output = writer.as_string()
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
129, in as_string
operation_string, operation_imports =
OperationWriter(operation).serialize()
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
80, in serialize
arg_string, arg_imports = MigrationWriter.serialize(item)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
245, in serialize
item_string, item_imports = cls.serialize(item)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
310, in serialize
return cls.serialize_deconstructed(path, args, kwargs)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
221, in serialize_deconstructed
arg_string, arg_imports = cls.serialize(arg)
File "/mnt/gen2/TmpDir/portage/dev-
python/django-1.7/work/Django-1.7/django/db/migrations/writer.py", line
380, in serialize
raise ValueError("Cannot serialize: %r\nThere are some values Django
cannot serialize into migration files.\nFor more, see
https://docs.djangoproject.com/en/dev/topics/migrations/#migration-
serializing" % value)
ValueError: Cannot serialize: <bound method type.utcnow of <class
'datetime.datetime'>>
There are some values Django cannot serialize into migration files.
For more, see https://docs.djangoproject.com/en/dev/topics/migrations
/#migration-serializing
----------------------------------------------------------------------
Ran 7215 tests in 956.466s
FAILED (errors=2, skipped=534, expected failures=8)
}}}
under all pythons. I expect you'll tell me it passes fine.
--
Ticket URL: <https://code.djangoproject.com/ticket/23477>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.f78606621dae1e3476b1715300c5bc12%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.