How do I test the integrity of a Python installation in Debian and Ubuntu

Aahz aahz at pythoncraft.com
Sun May 10 08:42:16 EDT 2009


In article <mailman.5282.1241783298.11746.python-list at python.org>,
Geoff Gardiner  <ggardiner at iee.org> wrote:
>
>gegard at gegard:~$ python
>Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
>[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
>>>> from test import regrtest
>>>> regrtest.main()
>test_grammar
>test_grammar skipped -- No module named test_grammar
>... <etc> more of the same...
>9 tests skipped:
>    test_builtin test_doctest test_doctest2 test_exceptions
>    test_grammar test_opcodes test_operations test_types test_unittest
>Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/lib/python2.5/test/regrtest.py", line 416, in main
>    e = _ExpectedSkips()
>  File "/usr/lib/python2.5/test/regrtest.py", line 1321, in __init__
>    from test import test_socket_ssl
>ImportError: cannot import name test_socket_ssl

What directory are you running this from?  What happens if you switch to
running "python Lib/test/regrtest.py"?  Taking a closer look, this looks
more like a plain import error.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan



More information about the Python-list mailing list