Winter time/summer time: interesting or weird bug?

Alexander Belchenko bialix at ukr.net
Sun Oct 30 21:45:07 GMT 2005


When on my computer clocks go to 23:00 and more I'm suddenly have
failing in the test test_revision_namespaces. Most strange thing is that
before that time it's working. When I looking at test code I saw that
test breaked in this assert:

self.assertEquals(RevisionSpec('date:today').in_history(b),
                  (2, 'a at r-0-2'))


AssertionError: <bzrlib.revisionspec.RevisionInfo object 1, a at r-0-1 for
_Branch('E:\\work\\Python\\bzr\\0.6\\win32-dev\\test0000.tmp\\testrevisionnamespaces.TestRevisionNamespaces.test_revision_namespaces')> 


!= (2, 'a at r-0-2')


This may be because my computer switch to winter time (at morning) and
clock was put back on hour. So in the summer time it should be next day,
but in winter time it is yet today.

May be this combination was causing this bug? Is this a Windows-specific
or not? This test fails on win32 native and cygwin.

Additional info: in test directory there 3 files with this timestamps:

a at r-0-1: timestamp="1130621649.000000000" timezone="7200"
a at r-0-2: timestamp="1130708049.234000000" timezone="7200"
a at r-0-3: timestamp="1130708049.296000000" timezone="7200"

Alexander.






More information about the bazaar mailing list