[Python-Dev] Getting importlib into the standard library for 3.1 (original) (raw)
Paul Moore p.f.moore at gmail.com
Thu Jan 8 21:57:29 CET 2009
- Previous message: [Python-Dev] Getting importlib into the standard library for 3.1
- Next message: [Python-Dev] Getting importlib into the standard library for 3.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/1/8 Brett Cannon <brett at python.org>:
Thanks, Paul! I changed it to os.getcwd() since that's what nt exposes.
Ta. I wasn't sure _os.getcwd() returned a full pathname.
The only difference between the importlib results and the normal ones seems to be that with importlib, test_multiprocessing is skipped, whereas with the normal import, it fails. The importlib result is
test_multiprocessing skipped -- No module named test.test_support
where the normal result is
test_multiprocessing Traceback (most recent call last): File "", line 1, in File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 342, in main Traceback (most recent call last): File "", line 1, in File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 342, in main prepare(preparation_data) prepare(preparation_data) File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 451, in prepare file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 451, in prepare file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named Traceback (most recent call last): File "", line 1, in File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 342, in main prepare(preparation_data) File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 451, in prepare file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named Traceback (most recent call last): File "", line 1, in File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 342, in main prepare(preparation_data) File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 451, in prepare file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named Traceback (most recent call last): File "", line 1, in File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 342, in main prepare(preparation_data) File "C:\Apps\Python30\lib\multiprocessing\forking.py", line 451, in prepare file, path_name, etc = imp.find_module(main_name, dirs) ImportError: No module named test test_multiprocessing crashed -- <class 'EOFError'>:
My command line was
\Apps\Python30\python.exe -c "import sys; sys.argv = ['', 'test_pkg', 'test_pydoc', 'test_shlex', 'test_pep263', 'test_distutils', 'test_lib2to3', 'test_pep3120', 'test_import']; from test.regrtest import main; main(exclude=True)"
Paul.
- Previous message: [Python-Dev] Getting importlib into the standard library for 3.1
- Next message: [Python-Dev] Getting importlib into the standard library for 3.1
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]