[Python-Dev] Vacation and possibly a new bug

Brett C. drifty@alum.berkeley.edu
Sat, 12 Jul 2003 20:54:15 -0700


Just a quick reminder, I am going off for a vacation and my brother's 
wedding tomorrow (July 13) and won't have a definite Net connection 
until July 22.

The bug #762934 (patch for configure.in to detect time.tzset better) is 
still open.  I uploaded my own version of the patch that is more 
explicit in detecting whether the function works properly.  It works for 
me, but tzset has always worked properly for me.  If someone with Red 
Hat 6.2 can test it that would be great (that will close bug #763153).

The macostools error (bug #763708) is still happening and I still think 
it could be an OS X bug and not ours.

And after I updated my copy of CVS and tried out the patch for tzset 
detection as mentioned above I got a failure in test_pep277.py (only 
difference between CVS and my checkout is configure.in and only in the 
tzset code and regrtest.py):

./python.exe Lib/test/test_pep277.py 
~/Progs/Python/CVS/python/dist/src
test_directory (__main__.UnicodeFileTests) ... u'\xdf-\u66e8\u66e9\u66eb'
ok
test_failures (__main__.UnicodeFileTests) ... ERROR
test_listdir (__main__.UnicodeFileTests) ... ERROR
test_open (__main__.UnicodeFileTests) ... ok
test_rename (__main__.UnicodeFileTests) ... ok

======================================================================
ERROR: test_failures (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "Lib/test/test_pep277.py", line 64, in test_failures
     self._apply_failure(open, name, IOError)
   File "Lib/test/test_pep277.py", line 54, in _apply_failure
     if check_fn_in_exception and details.filename != filename:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 12: 
ordinal not in range(128)

======================================================================
ERROR: test_listdir (__main__.UnicodeFileTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "Lib/test/test_pep277.py", line 82, in test_listdir
     f2 = os.listdir(unicode(test_support.TESTFN,"mbcs"))
   File 
"/Users/drifty/Progs/Python/CVS/python/dist/src/Lib/encodings/__init__.py", 
line 84, in search_function
     globals(), locals(), _import_tail)
   File 
"/Users/drifty/Progs/Python/CVS/python/dist/src/Lib/encodings/mbcs.py", 
line 14, in ?
     class Codec(codecs.Codec):
   File 
"/Users/drifty/Progs/Python/CVS/python/dist/src/Lib/encodings/mbcs.py", 
line 18, in Codec
     encode = codecs.mbcs_encode
AttributeError: 'module' object has no attribute 'mbcs_encode'

----------------------------------------------------------------------
Ran 5 tests in 0.872s

FAILED (errors=2)
Traceback (most recent call last):
   File "Lib/test/test_pep277.py", line 113, in ?
     test_main()
   File "Lib/test/test_pep277.py", line 108, in test_main
     test_support.run_unittest(UnicodeFileTests)
   File 
"/Users/drifty/Progs/Python/CVS/python/dist/src/Lib/test/test_support.py", 
line 259, in run_unittest
     run_suite(suite, testclass)
   File 
"/Users/drifty/Progs/Python/CVS/python/dist/src/Lib/test/test_support.py", 
line 246, in run_suite
     raise TestFailed(msg)
test.test_support.TestFailed: errors occurred in __main__.UnicodeFileTests
[7442 refs]



This is under OS X so if this is a serious bug and not some funky fluke 
on my system hopefully someone else like Skip, Just, or Michael will get 
it and be able to work on it.

Good luck on getting 2.3 final out the door.  I feel bad having a patch 
and a possible bug being open before I leave.  Sorry, guys.

I hope to come back with little python-dev email and what little I get 
are positive.  =)

-Brett