unpack_highres_date doctest fails on Python 2.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Low
|
Jelmer Vernooij |
Bug Description
The bzrlib.
Traceback (most recent call last):
File "...\python-
raise self.failureExc
AssertionError: Failed doctest test for bzrlib.
File ".\bzrlib\
---
File ".\bzrlib\
Failed example:
Expected:
Got:
There have been some changes to float string formatting to make it output the shortest string for the range represented, which I suspect relates to this failure:
<http://
However, as I can't reproduce this problem outside the doctest I'm uncertain that that is in fact the cause.
Changed in bzr: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in bzr: | |
assignee: | nobody → Jelmer Vernooij (jelmer) |
status: | Confirmed → In Progress |
tags: |
added: python27 removed: python2.7 |
doctests should be avoided :). You could do: 3508501, -18000)
- (1120153132.
+ 1120153132.350..., -18000)
However, I'll note that inside bzrlib we explicitly truncate timestamps to milliseconds, so that would be a better test.