Make test fails on time module with Python 1.5.2/Linux2/EGCS! Help!

Alexander Staubo nospam at mop.no
Wed May 12 16:23:46 EDT 1999


In article <7hah87$fci$1 at brick.cswv.com>, neelk at brick.cswv.com says...
> In article <MPG.11a2a389f734af92989728 at news.online.no>,
> Alexander Staubo <nospam at mop.no> wrote:
> >After doing a "make; make test", I get a failure in testing test_time.py. 
> >Here's the output when I run the test on its own:
> >
> >tradecenter:/usr/src/python# python Lib/test/test_time.py
> >Traceback (innermost last):
> >  File "Lib/test/test_time.py", line 3, in ?
> >    time.altzone
> >AttributeError: altzone
> >
> >Maybe Python has a problem with EGCS? That said, the compilator does not 
> >seem to output any errors (I'd be only happy to forward the make output 
> >to anyone interested.) I have not tried making with plain GCC.
> 
> I can confirm that it's not limited to egcs, because I'm getting the
> same error with gcc 2.7.2 and libc5. :) None of the module-level
> variables in the time module are appearing for me, either.

What's strange is that the Linux time.h does not declare altzone, 
daytime, or possibly other variables. I'd assume that they would be, 
since they are not deemed "optional" by Python. And compiling with gcc 
2.7.2 certainly didn't help me, either. Weirdness!
 
Alexander Staubo
http://www.mop.no/~alex/
mailto:redhand at mop.no




More information about the Python-list mailing list