[issue11344] Add os.path.splitpath(path) function

blokeley report at bugs.python.org
Fri Apr 29 10:59:42 CEST 2011


blokeley <blokeley at gmail.com> added the comment:

The unit tests on the cpython tip revision fail even before applying my patches and I'm afraid haven't got the time to debug the threading module or existing unit tests.

The traceback is:

C:\workspace\cpython\Lib\test> C:\Python32\python.exe test_ntpath.py

Traceback (most recent call last):
  File "test_ntpath.py", line 4, in <module>
    from test.support import TestFailed
  File "C:\workspace\cpython\Lib\test\support.py", line 14, in <module>
    import shutil
  File "C:\workspace\cpython\Lib\shutil.py", line 17, in <module>
    import bz2
  File "C:\workspace\cpython\Lib\bz2.py", line 13, in <module>
    import threading
  File "C:\workspace\cpython\Lib\threading.py", line 34, in <module>
    _info = _thread.info
AttributeError: 'module' object has no attribute 'info'


It happens with cpython hg rev 8eb794bbb967

If there's a quick fix for this, please advise and I'll get working. 

If not, I'll probably not have the time to fix it myself and then write the os.path.splitpath patches as well which would be a pity.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11344>
_______________________________________


More information about the Python-bugs-list mailing list