Comment 0 for bug 1324441

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

summary:
datetime tests fail

steps:
1. bzr branch lp:autopilot
2. cd autopilot
3. bzr bd

expected results:
all tests pass and package builds

actual results:
tests fail

output:

======================================================================
FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_datetime_has_properties
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/anarchy/build-area/autopilot-1.5.0+14.10.20140526.1/autopilot/tests/unit/test_types.py", line 314, in test_datetime_has_properties
    self.assertThat(dt.hour, Equals(22))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 22 != 18
======================================================================
FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_equality_with_datetime_timestamp
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/anarchy/build-area/autopilot-1.5.0+14.10.20140526.1/autopilot/tests/unit/test_types.py", line 335, in test_equality_with_datetime_timestamp
    self.assertThat(dt1, Equals(dt2))
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = datetime.datetime(2013, 8, 22, 22, 18, 47)
actual = DateTime(2013-08-22 18:18:47)
======================================================================
FAIL: autopilot.tests.unit.test_types.DateTimeTests.test_repr
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/anarchy/build-area/autopilot-1.5.0+14.10.20140526.1/autopilot/tests/unit/test_types.py", line 347, in test_repr
    self.assertEqual(expected, observed)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 321, in assertEqual
    self.assertThat(observed, matcher, message)
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 406, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: 'DateTime(2013-08-22 22:18:47)' != 'DateTime(2013-08-22 18:18:47)'

Ran 932 tests in 0.673s
FAILED (failures=3)

testtools.matchers._impl.MismatchError: 'DateTime(2013-08-22 22:18:47)' != 'DateTime(2013-08-22 18:18:47)'

Ran 932 tests in 0.737s
FAILED (failures=4)
debian/rules:22: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
debian/rules:8: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
bzr: ERROR: The build failed.