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

SourceForge.net noreply@sourceforge.net
Mon, 28 Jul 2003 20:38:01 -0700


Bugs item #763153, was opened at 2003-06-30 08:35
Message generated for change (Comment added) made by bwarsaw
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: 6
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: Barry A. Warsaw (bwarsaw)
Date: 2003-07-28 23:38

Message:
Logged In: YES 
user_id=12800

I'm not sure there's anything we can do about this for
Python 2.3 final.  Lowering the priority, although I will
add a note in known bugs.html page.

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

Comment By: Tim Heaney (theaney)
Date: 2003-07-27 19:04

Message:
Logged In: YES 
user_id=827666

Hi.

I just thought I'd mention that I got the same results with
2.3c2.

Tim


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

Comment By: Tim Heaney (theaney)
Date: 2003-07-21 23:09

Message:
Logged In: YES 
user_id=827666

Hello.

I just downloaded 2.3c1. I failed test_time as well. I was
going to submit a new bug, but then I saw this thread. I
hope this is the right place.

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

227 tests OK.
1 test failed:
    test_time
27 tests skipped:
    test_aepack test_al test_bsddb185 test_bsddb3 test_cd
test_cl
    test_curses test_email_codecs test_gl test_imgfile
    test_linuxaudiodev test_macfs test_macostools test_nis
    test_normalization test_ossaudiodev test_pep277
test_plistlib
    test_scriptpackages test_socket_ssl test_socketserver
    test_sunaudiodev test_timeout test_unicode_file
test_urllibnet
    test_winreg test_winsound
Those skips are all expected on linux2.
make: *** [test] Error 1

For what it's worth, time seems to work...

$ ./python -c 'import time; print time.tzname'
('EST', 'EDT')

$ cat /proc/version 
Linux version 2.4.20 (root@mrbun) (gcc version 2.95.3
20010315 (release)) #11 Sat Nov 30 05:52:58 EST 2002

Tim


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

Comment By: Brett Cannon (bcannon)
Date: 2003-07-12 22:28

Message:
Logged In: YES 
user_id=357491

I uploaded a new version of the patch.  Give it a try and see what 
happens if you could.

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

Comment By: Brett Cannon (bcannon)
Date: 2003-07-10 13: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 03: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-10 00: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 14: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 13: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-07-01 01: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 22: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 13: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 11: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