[New-bugs-announce] [issue22067] time_test fails after strptime()

Serhiy Storchaka report at bugs.python.org
Fri Jul 25 17:05:06 CEST 2014


New submission from Serhiy Storchaka:

time_test fails when running after any test which uses strptime().

The bug can be easily reproduced by running test_time twice:

$ TZ=Europe/Kiev ./python -m test.regrtest -ugui -v test_time test_time
...
======================================================================
FAIL: test_strptime (test.test_time.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython-2.7/Lib/test/test_time.py", line 120, in test_strptime
    (format, strf_output))
AssertionError: conversion specifier '%Z' failed with 'MSK' input.

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

All works on 3.x and with TZ=UTC.

May be this is related to issue13309.

----------
components: Extension Modules, Tests
messages: 223955
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: time_test fails after strptime()
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22067>
_______________________________________


More information about the New-bugs-announce mailing list