timezone causes test failures in parser tests

Bug #691740 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
CVS to Bazaar importer
Triaged
Medium
Unassigned

Bug Description

The tests appear to be timezone-specific, and fail for me when I run them (I'm in CET).

BZR_PLUGINS_AT=cvspsimport@/home/jelmer/src/bzr-cvspsimport/build-area/bzr-cvsps-import-0.0.1~bzr63 /usr/bin/bzr selftest -s bp.cvspsimport
bzr selftest: /usr/bin/bzr
   /usr/lib/python2.7/dist-packages/bzrlib
   bzr-2.3.0dev5 python-2.7.1 Linux-2.6.37-9-generic-x86_64-with-Ubuntu-11.04-natty

FAIL: bzrlib.plugins.cvspsimport.test_cvsps_parser.TestParser.test_complex
    Text attachment: log
------------

------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/home/jelmer/src/bzr-cvspsimport/build-area/bzr-cvsps-import-0.0.1~bzr63/test_cvsps_parser.py", line 229, in test_complex
    self.assertEqual(1164052415.000, ps.timestamp)
AssertionError: not equal:
a = 1164052415.0
b = 1164027215.0

------------

FAIL: bzrlib.plugins.cvspsimport.test_cvsps_parser.TestParser.test_simple
    Text attachment: log
------------

------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/home/jelmer/src/bzr-cvspsimport/build-area/bzr-cvsps-import-0.0.1~bzr63/test_cvsps_parser.py", line 212, in test_simple
    self.assertEqual(1164052337.000, ps.timestamp)
AssertionError: not equal:
a = 1164052337.0
b = 1164027137.0

------------

======================================================================
FAIL: bzrlib.plugins.cvspsimport.test_cvsps_parser.TestParser.test_complex
----------------------------------------------------------------------
_StringException: Text attachment: log
------------

------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/home/jelmer/src/bzr-cvspsimport/build-area/bzr-cvsps-import-0.0.1~bzr63/test_cvsps_parser.py", line 229, in test_complex
    self.assertEqual(1164052415.000, ps.timestamp)
AssertionError: not equal:
a = 1164052415.0
b = 1164027215.0

------------

======================================================================
FAIL: bzrlib.plugins.cvspsimport.test_cvsps_parser.TestParser.test_simple
----------------------------------------------------------------------
_StringException: Text attachment: log
------------

------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/testtools/runtest.py", line 169, in _run_user
    return fn(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 499, in _run_test_method
    return self._get_test_method()()
  File "/home/jelmer/src/bzr-cvspsimport/build-area/bzr-cvsps-import-0.0.1~bzr63/test_cvsps_parser.py", line 212, in test_simple
    self.assertEqual(1164052337.000, ps.timestamp)
AssertionError: not equal:
a = 1164052337.0
b = 1164027137.0

------------

----------------------------------------------------------------------
Ran 53 tests in 6.281s

FAILED (failures=2)

Jelmer Vernooij (jelmer)
summary: - test failures in parser tests
+ timezone causes test failures in parser tests
Jelmer Vernooij (jelmer)
Changed in bzr-cvsps-import:
status: New → Triaged
importance: Undecided → Medium
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.