tests fail on 32 bit platforms
Bug #1190054 reported by
Soren Hansen
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-keystoneclient |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Many (all?) of the tokens shipped in the test suite are set to expire in 2112. If running the test suite on a 32 bit platform, this will fail, as the timestamps can't fit in 32 bits.
On 32 bit platforms:
>>> from keystoneclient.
>>> timeutils.
'-1'
On 64 bit platforms:
>>> from keystoneclient.
>>> timeutils.
'4494318454'
This causes a bunch of test failures:
Changed in python-keystoneclient: | |
assignee: | nobody → Wu Wenxiang (wu-wenxiang) |
Changed in python-keystoneclient: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
Changed in python-keystoneclient: | |
assignee: | Wu Wenxiang (wu-wenxiang) → ZhiQiang Fan (aji-zqfan) |
Changed in python-keystoneclient: | |
assignee: | ZhiQiang Fan (aji-zqfan) → nobody |
status: | In Progress → Fix Committed |
Changed in python-keystoneclient: | |
milestone: | none → 0.4.0 |
Changed in python-keystoneclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The root cause is: strftime() return long int. And long size is 32 bits in 32 bit system, 64 bits in 64 bit platform.