[Python-bugs-list] [ python-Bugs-763153 ] unit test test_time failed

SourceForge.net noreply@sourceforge.net
Thu, 10 Jul 2003 10:11:31 -0700


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

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 7
Submitted By: Torsten Will (towi)
Assigned to: Brett Cannon (bcannon)
Summary: unit test test_time failed

Initial Comment:
=== ERROR MASSAGE ===

$ make test
...
test test_time failed -- Traceback (most recent call last):
  File "/vol/tmp/Python-2.3b2/Lib/test/test_time.py",
line 107, in test_tzset
    self.failUnless(time.tzname[1] == 'AEDT',
str(time.tzname[1]))
  File "/vol/tmp/Python-2.3b2/Lib/unittest.py", line
268, in failUnless
    if not expr: raise self.failureException, msg
AssertionError: AEST
...

=========== SYSTEM ===========

$ cat /proc/version 
Linux version 2.4.19 (root@haplo) (gcc version 2.95.3
20010315 (SuSE)) #4 SMP Tue Mar 4 09:23:24 CET 2003



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

>Comment By: Brett Cannon (bcannon)
Date: 2003-07-10 10:11

Message:
Logged In: YES 
user_id=357491

Barry says you need to do the following to truly test the patch:

- check out the head
- make distclean
- apply the patch
- autoreconf
- ./configure --with-pydebug
- make test

Apparently autoreconf regenerates something for autoconf and 
that has to be done.  Learn something new everyday.  Can you 
give that a shot, Torsten?  If that still fails it is going to take some 
work to figure this one out.

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

Comment By: Torsten Will (towi)
Date: 2003-07-10 00:58

Message:
Logged In: YES 
user_id=269193

no, sorry, no success!

 * re-compiled python, as expected the test failed again.
 * patch -p0 <../tzset4.diff
 * made a "make distclean"
 * ./configure again, looked nice, no chached stuff.
 * make 
 * make test
 >>> failed again !!!

anything i could check to help?


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

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-07-09 21:37

Message:
Logged In: YES 
user_id=80475

Tonight, test_time also failed for me and then worked on the 
next pass.  Am using WinME and Py2.3b2+.



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

Comment By: Torsten Will (towi)
Date: 2003-07-09 11:30

Message:
Logged In: YES 
user_id=269193

sorry, problem! hard drive scambled.
i have to re-install python anyway. i will see if the test
fails again, and then i try to apply the patch.

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

Comment By: Brett Cannon (bcannon)
Date: 2003-07-09 10:15

Message:
Logged In: YES 
user_id=357491

Torsten, can you please try the patch that Neal pointed out?  We 
are approaching the release of Python 2.3 (by the end of the 
month) and it would be nice if this bug was settled before it goes 
out.

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

Comment By: Brett Cannon (bcannon)
Date: 2003-06-30 22:10

Message:
Logged In: YES 
user_id=357491

If you are referring to bug #763047 and its cohort #763052, then 
no, I don't think so.  Those I think were an actual bug in the code.  
But there *is* a possibility since _strptime does call time.tzset 
when it calculates what timezones it knows about.

I am unassigning from myself since I have never touched 
time.tzset (don't remember who wrote time.tzset off the top of my 
head but it is a Python 2.3 feature).

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-06-30 19:38

Message:
Logged In: YES 
user_id=80475

Brett, is this related to the other failures?

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

Comment By: Torsten Will (towi)
Date: 2003-06-30 10:56

Message:
Logged In: YES 
user_id=269193

suse 7.1 or 7.2. kernel 2.19.
i cannot apply the patch just now, but i will try tomorrow.

tt.


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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-06-30 08:15

Message:
Logged In: YES 
user_id=33168

What OS are you using?  Redhat 6.2, perhaps?  Can you test
patch 762934?  http://python.org/sf/762934

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

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