代码之家  ›  专栏  ›  技术社区  ›  Yasir NL

python2.7中的test_ssl.py和test_urllib2.py测试失败

  •  1
  • Yasir NL  · 技术社区  · 8 年前

    TestSysS.Py

    root@yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python  python test_ssl.py 
    Traceback (most recent call last):
        File "test_ssl.py", line 7, in <module>
          from test.script_helper import assert_python_ok
    ImportError: No module named script_helper
    

    测试urllib2.py

    root@yasir:/home/yasir/PYTHON/python2.7-2.7.6/Lib/test# python test_urllib2.py 
    Traceback (most recent call last):
       File "test_urllib2.py", line 3, in <module>
         from test import test_urllib
    ImportError: cannot import name test_urllib
    

    我不知道哪个模块丢失了,所以面对这个错误

    1 回复  |  直到 8 年前
        1
  •  0
  •   Yasir NL    7 年前

    由于缺少python模块libpython2.7-testsuite,测试失败