datetime tests fail

Bug #1324441 reported by Chris Gagnon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Autopilot
Fix Released
High
Christopher Lee
autopilot (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

summary:
datetime tests fail

steps: (using utopic on laptop in EST or new york)
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.

Related branches

Changed in autopilot:
assignee: nobody → Christopher Lee (veebers)
description: updated
description: updated
Changed in autopilot:
status: New → Confirmed
importance: Undecided → Critical
importance: Critical → High
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:~autopilot/autopilot/temp-dev at revision 523, scheduled for release in autopilot, milestone Unknown

Changed in autopilot:
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopilot - 1.5.0+14.10.20140613-0ubuntu1

---------------
autopilot (1.5.0+14.10.20140613-0ubuntu1) utopic; urgency=low

  [ Tarmac ]
  * Fix DateTime tests that failed due to recent DateTime changes that
    removed assumption of UTC TZ. (LP: #1324441, #1327377)
 -- Ubuntu daily release <email address hidden> Fri, 13 Jun 2014 00:31:08 +0000

Changed in autopilot (Ubuntu):
status: New → Fix Released
Changed in autopilot:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.