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.
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:
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_types. DateTimeTests. test_datetime_ has_properties ------- ------- ------- ------- ------- ------- ------- ------- ------- anarchy/ build-area/ autopilot- 1.5.0+14. 10.20140526. 1/autopilot/ tests/unit/ test_types. py", line 314, in test_datetime_ has_properties assertThat( dt.hour, Equals(22)) python3/ dist-packages/ testtools/ testcase. py", line 406, in assertThat matchers. _impl.MismatchE rror: 22 != 18 ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_types. DateTimeTests. test_equality_ with_datetime_ timestamp ------- ------- ------- ------- ------- ------- ------- ------- ------- 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 assertThat( dt1, Equals(dt2)) python3/ dist-packages/ testtools/ testcase. py", line 406, in assertThat matchers. _impl.MismatchE rror: !=: datetime( 2013, 8, 22, 22, 18, 47) ======= ======= ======= ======= ======= ======= ======= ======= ======= tests.unit. test_types. DateTimeTests. test_repr ------- ------- ------- ------- ------- ------- ------- ------- ------- anarchy/ build-area/ autopilot- 1.5.0+14. 10.20140526. 1/autopilot/ tests/unit/ test_types. py", line 347, in test_repr assertEqual( expected, observed) python3/ dist-packages/ testtools/ testcase. py", line 321, in assertEqual assertThat( observed, matcher, message) python3/ dist-packages/ testtools/ testcase. py", line 406, in assertThat matchers. _impl.MismatchE rror: 'DateTime( 2013-08- 22 22:18:47)' != 'DateTime( 2013-08- 22 18:18:47)'
FAIL: autopilot.
-------
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
raise mismatch_error
testtools.
=======
FAIL: autopilot.
-------
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
raise mismatch_error
testtools.
reference = datetime.
actual = DateTime(2013-08-22 18:18:47)
=======
FAIL: autopilot.
-------
Traceback (most recent call last):
File "/home/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise mismatch_error
testtools.
Ran 932 tests in 0.673s
FAILED (failures=3)
testtools. matchers. _impl.MismatchE rror: 'DateTime( 2013-08- 22 22:18:47)' != 'DateTime( 2013-08- 22 18:18:47)'
Ran 932 tests in 0.737s dh_auto_ test' failed dh_auto_ test] Error 1
FAILED (failures=4)
debian/rules:22: recipe for target 'override_
make[1]: *** [override_
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.