spurious test failures on Windows due to absence of time.tzset() #2723

Closed
opened 2016-02-02 17:52:22 +00:00 by daira · 2 comments
daira commented 2016-02-02 17:52:22 +00:00
Owner
allmydata.test.test_web.Web.test_PUT_update_at_invalid_offset ...
Traceback (most recent call last):
> File "c:\users\buildslave\tahoe\daira_win7-64_py2_7\build\src\allmydata\test\test_web.py", line 286, in setUp
    self.setTimezone('UTC-13:00')
> File "c:\users\buildslave\tahoe\daira_win7-64_py2_7\build\src\allmydata\test\common_util.py", line 190, in setTimezone
    time.tzset()
exceptions.AttributeError: 'module' object has no attribute 'tzset'
``` allmydata.test.test_web.Web.test_PUT_update_at_invalid_offset ... Traceback (most recent call last): > File "c:\users\buildslave\tahoe\daira_win7-64_py2_7\build\src\allmydata\test\test_web.py", line 286, in setUp self.setTimezone('UTC-13:00') > File "c:\users\buildslave\tahoe\daira_win7-64_py2_7\build\src\allmydata\test\common_util.py", line 190, in setTimezone time.tzset() exceptions.AttributeError: 'module' object has no attribute 'tzset' ```
tahoe-lafs added the
code
normal
defect
1.10.2
labels 2016-02-02 17:52:22 +00:00
Daira Hopwood <daira@jacaranda.org> commented 2016-02-02 18:50:10 +00:00
Author
Owner

In 0abbf47/trunk:

Don't call time.tzset() if the platform doesn't have it. fixes ticket:2723

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
In [0abbf47/trunk](/tahoe-lafs/trac-2024-07-25/commit/0abbf474b0dfbdb953316023ee9e17e9257c0547): ``` Don't call time.tzset() if the platform doesn't have it. fixes ticket:2723 Signed-off-by: Daira Hopwood <daira@jacaranda.org> ```
tahoe-lafs added the
fixed
label 2016-02-02 18:50:10 +00:00
Daira Hopwood <daira@jacaranda.org> closed this issue 2016-02-02 18:50:10 +00:00
warner commented 2016-03-22 05:03:36 +00:00
Author
Owner

Milestone renamed

Milestone renamed
tahoe-lafs added this to the 1.11.0 milestone 2016-03-22 05:03:36 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#2723
No description provided.