[Python-bugs-list] [ python-Bugs-763047 ] test_strptime fails on Linux

SourceForge.net noreply@sourceforge.net
Tue, 01 Jul 2003 00:42:02 -0700


Bugs item #763047, was opened at 2003-06-30 00:33
Message generated for change (Comment added) made by bcannon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=763047&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Dmitry Vasiliev (hdima)
Assigned to: Brett Cannon (bcannon)
Summary: test_strptime fails on Linux

Initial Comment:
Python 2.3b2+ (#1, Jun 30 2003, 10:50:39)
Linux version 2.4.18-19.7asp

test_strptime
test test_strptime failed -- Traceback (most recent
call last):
  File
"/home/dima/src/other/python/dist/src/Lib/test/test_strptime.py",
line 312, in test_timezone
    "LocaleTime().timezone has duplicate values but "
  File
"/home/dima/src/other/python/dist/src/Lib/unittest.py",
line 268, in failUnless
    if not expr: raise self.failureException, msg
AssertionError: LocaleTime().timezone has duplicate
values but timzone value not set to -1

1 test failed:
    test_strptime


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

>Comment By: Brett Cannon (bcannon)
Date: 2003-07-01 00:42

Message:
Logged In: YES 
user_id=357491

Damn.  OK, lets take Raymond's suggestion and try removing the 
time.tzset call.  Try the new patch and let me know how it goes.

Also, when was the last time you ran the test and it passed?  I am 
trying to isolate if this is all happening because of my attempt to 
take time.daylight into account.

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

Comment By: Dmitry Vasiliev (hdima)
Date: 2003-07-01 00:25

Message:
Logged In: YES 
user_id=388573

No, the same error remains

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

Comment By: Brett Cannon (bcannon)
Date: 2003-06-30 18:46

Message:
Logged In: YES 
user_id=357491

So it wasn't what I thought it would be.  But I do think I found the 
error.  Dmitry, can you apply the patch that I attached to the 
report and see if it fixes the problem?

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

Comment By: Brett Cannon (bcannon)
Date: 2003-06-30 16:43

Message:
Logged In: YES 
user_id=357491

It is the same error and I am 99% sure I know the problem 
(stupid mistake on my part in the test).  As soon as I am done 
recompiling I will fix it locally and see if it takes.

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

Comment By: Walter Dörwald (doerwalter)
Date: 2003-06-30 05:04

Message:
Logged In: YES 
user_id=89016

This might be a duplicate of 763052, which reported to same
error under Windows.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=763047&group_id=5470