View Single Post
Posts: 838 | Thanked: 3,384 times | Joined on Mar 2009
#18
And of cource you should be interested in test-results (feel free to run on your device, tests are installed):
I dont yet understand everything, feel free to comment what are critical.

Code:
cd /opt/python3/lib/python3.4/test/
time python3 regrtest.py
(modified results:)
Code:
== CPython 3.4.0 (default, Apr 19 2014, 16:37:49) [GCC 4.2.1]
==   Linux-2.6.28.10-power52-armv7l-with-debian-testing-unstable little-endian
==   hash algorithm: siphash24 32bit
==   /var/tmp/test_python_22590
Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1, isolated=0)
[  6/389] test_types
Warning -- locale was modified by test_types
[ 23/389] test_asyncio
test_asyncio skipped -- cannot import name '_base'
[ 40/389] test_calendar
Warning -- locale was modified by test_calendar
[ 60/389] test_codecmaps_cn
test_codecmaps_cn skipped -- Use of the 'urlfetch' resource not enabled
[ 61/389] test_codecmaps_hk
test_codecmaps_hk skipped -- Use of the 'urlfetch' resource not enabled
[ 62/389] test_codecmaps_jp
test_codecmaps_jp skipped -- Use of the 'urlfetch' resource not enabled
[ 63/389] test_codecmaps_kr
test_codecmaps_kr skipped -- Use of the 'urlfetch' resource not enabled
[ 64/389] test_codecmaps_tw
test_codecmaps_tw skipped -- Use of the 'urlfetch' resource not enabled
[ 71/389] test_compileall
test test_compileall failed -- Traceback (most recent call last):
  File "/opt/python3/lib/python3.4/test/test_compileall.py", line 194, in test_no_args_respects_force_flag
    self.assertRunOK('-f', PYTHONPATH=self.directory)
  File "/opt/python3/lib/python3.4/test/test_compileall.py", line 144, in assertRunOK
    *self._get_run_args(args), **env_vars)
  File "/opt/python3/lib/python3.4/test/script_helper.py", line 69, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "/opt/python3/lib/python3.4/test/script_helper.py", line 55, in _assert_python
    "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 1, stderr follows:

[ 73/389/1] test_concurrent_futures
test_concurrent_futures skipped -- No module named '_multiprocessing'
[ 83/389/1] test_ctypes
test test_ctypes failed -- multiple errors occurred; run in verbose mode for details
[ 84/389/2] test_curses
test_curses skipped -- Use of the 'curses' resource not enabled
[ 96/389/2] test_devpoll
test_devpoll skipped -- select.devpoll not defined
[101/389/2] test_distutils
unable to execute gcc: No such file or directory
unable to execute gcc: No such file or directory
unable to execute gcc: No such file or directory
unable to execute gcc: No such file or directory
test test_distutils failed -- multiple errors occurred; run in verbose mode for details
[124/389/3] test_float
Warning -- locale was modified by test_float
[139/389/3] test_gdb
test_gdb skipped -- test_gdb only works on source builds at the moment.
[181/389/3] test_kqueue
test_kqueue skipped -- test works only on BSD
[187/389/3] test_locale
Warning -- locale was modified by test_locale
[206/389/3] test_msilib
test_msilib skipped -- No module named 'msilib'
[208/389/3] test_multiprocessing_fork
test_multiprocessing_fork skipped -- No module named '_multiprocessing'
[209/389/3] test_multiprocessing_forkserver
test_multiprocessing_forkserver skipped -- No module named '_multiprocessing'
[210/389/3] test_multiprocessing_main_handling
test_multiprocessing_main_handling skipped -- No module named '_multiprocessing'
[211/389/3] test_multiprocessing_spawn
test_multiprocessing_spawn skipped -- No module named '_multiprocessing'
[223/389/3] test_ossaudiodev
test_ossaudiodev skipped -- Use of the 'audio' resource not enabled
[292/389/3] test_smtpnet
test_smtpnet skipped -- Use of the 'network' resource not enabled
[295/389/3] test_socketserver
test_socketserver skipped -- Use of the 'network' resource not enabled
[300/389/3] test_startfile
test_startfile skipped -- object <module 'os' from '/opt/python3/lib/python3.4/os.py'> has no attribute 'startfile'
[307/389/3] test_strptime
Warning -- locale was modified by test_strptime
[312/389/3] test_subprocess
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
test test_subprocess failed -- multiple errors occurred; run in verbose mode for details
[318/389/4] test_sys
test test_sys failed -- Traceback (most recent call last):
  File "/opt/python3/lib/python3.4/test/test_sys.py", line 605, in test_executable
    self.assertEqual(os.path.abspath(sys.executable), sys.executable)
AssertionError: '/opt/python3/bin/python3' != '/opt/python3/lib/python3.4/test/../../../bin/python3'
- /opt/python3/bin/python3
+ /opt/python3/lib/python3.4/test/../../../bin/python3

[336/389/5] test_timeout
test_timeout skipped -- Use of the 'network' resource not enabled
[337/389/5] test_tk
test_tk skipped -- Use of the 'gui' resource not enabled
[338/389/5] test_tokenize
[339/389/5] test_tools
test_tools skipped -- test irrelevant for an installed Python
[343/389/5] test_ttk_guionly
test_ttk_guionly skipped -- Use of the 'gui' resource not enabled
[358/389/5] test_urllib2net
test_urllib2net skipped -- Use of the 'network' resource not enabled
[360/389/5] test_urllibnet
test_urllibnet skipped -- Use of the 'network' resource not enabled
[367/389/5] test_venv
test test_venv failed -- multiple errors occurred; run in verbose mode for details
[375/389/6] test_winreg
test_winreg skipped -- No module named 'winreg'
[376/389/6] test_winsound
test_winsound skipped -- Use of the 'audio' resource not enabled
[384/389/6] test_xmlrpc_net
test_xmlrpc_net skipped -- Use of the 'network' resource not enabled
[386/389/6] test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
348 tests OK.
6 tests failed:
    test_compileall test_ctypes test_distutils test_subprocess
    test_sys test_venv
5 tests altered the execution environment:
    test_calendar test_float test_locale test_strptime test_types
30 tests skipped:
    test_asyncio test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
    test_codecmaps_kr test_codecmaps_tw test_concurrent_futures
    test_curses test_devpoll test_gdb test_kqueue test_msilib
    test_multiprocessing_fork test_multiprocessing_forkserver
    test_multiprocessing_main_handling test_multiprocessing_spawn
    test_ossaudiodev test_smtpnet test_socketserver test_startfile
    test_timeout test_tk test_tools test_ttk_guionly test_urllib2net
    test_urllibnet test_winreg test_winsound test_xmlrpc_net
    test_zipfile64

real    85m24.808s
user    71m53.664s
sys     5m36.367s

You can run simple test with (e.g)
Code:
root
python3 regrtest.py test_zipfile64

[EDIT]
Tests 60,61,62,63,64
You need write access to the directory:
Code:
chown -R user /opt/python3/lib/python3.4/test
And 'resource urlfetch'
Code:
python3 regrtest.py -uurlfetch test_codecmaps_cn test_codecmaps_hk  test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw
[/EDIT]

Last edited by AapoRantalainen; 2014-04-20 at 08:39.
 

The Following 3 Users Say Thank You to AapoRantalainen For This Useful Post: