django-nonrel/djangotoolbox — Issue #2: test_pre_save_untyped is time sensitive
Author: Wilfred
Created: 2011-12-15 13:15:11+00:00
State: open

======================================================================
FAIL: test_pre_save_untyped (djangotoolbox.tests.EmbeddedModelFieldTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File " line 269, in test_pre_save_untyped
self.test_pre_save(field='simple_untyped')
File " line 265, in test_pre_save
self.assertEqualDatetime(getattr(instance, field).auto_now_add, auto_now_add)
File " line 235, in assertEqualDatetime
self.assertEqual(d1.replace(microsecond=0), d2.replace(microsecond=0))
AssertionError: datetime.datetime(2011, 12, 15, 6, 39, 55) != datetime.datetime(2011, 12, 15, 6, 39, 54)

The system the test ran on was rather slow it seems.