Уведомления

Группа в Telegram: @pythonsu

#1 Июль 27, 2022 18:15:39

ya.chumanov
Зарегистрирован: 2022-07-27
Сообщения: 2
Репутация: +  0  -
Профиль   Отправить e-mail  

Сборка интерпретатора Python 3.10.5 из исходников в Linux

Всем привет!

В общем ситуация такая: У меня есть старенький ноутбук, в котором уже даже нет жёсткого диска, и который я использую чисто для запуска Linux в режиме Live USB, - да, мне этого вполне достаточно И вот решил я так сказать, немного поиграться с питоном

В данный момент я использую Linux Mint (LMDE 5), где установлен Python 3.9.2. Решил поставить самую последнюю на данный момент версию Python 3.10.5. Решил собрать из исходников. Скачал исходники с официального сайта, распаковал архив, почитал README, в итоге cделал так:

Сперва активировал source code repositories (чтобы установить зависимости). Затем:

 sudo apt update
sudo apt build-dep python3
sudo apt install pkg-config
sudo apt install build-essential gdb lcov pkg-config \
      libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
      libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
      lzma lzma-dev tk-dev uuid-dev zlib1g-dev
cd Downloads/Python-3.10.5/
sudo ./configure --enable-optimizations --with-lto
sudo make altinstall
sudo make test

При прохождении тестов получил следующее:

  CC='gcc -pthread' LDSHARED='gcc -pthread -shared   -fno-semantic-interposition -flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' 	_TCLTK_INCLUDES='-I/usr/include/tcl8.6' _TCLTK_LIBS='-ltk8.6 -ltkstub8.6 -ltcl8.6 -ltclstub8.6' 	./python -E ./setup.py  build
running build
running build_ext
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  pwd                   time               
running build_scripts
copying and adjusting /home/mint/Downloads/Python-3.10.5/Tools/scripts/pydoc3 -> build/scripts-3.10
copying and adjusting /home/mint/Downloads/Python-3.10.5/Tools/scripts/idle3 -> build/scripts-3.10
copying and adjusting /home/mint/Downloads/Python-3.10.5/Tools/scripts/2to3 -> build/scripts-3.10
changing mode of build/scripts-3.10/pydoc3 from 644 to 755
changing mode of build/scripts-3.10/idle3 from 644 to 755
changing mode of build/scripts-3.10/2to3 from 644 to 755
renaming build/scripts-3.10/pydoc3 to build/scripts-3.10/pydoc3.10
renaming build/scripts-3.10/idle3 to build/scripts-3.10/idle3.10
renaming build/scripts-3.10/2to3 to build/scripts-3.10/2to3-3.10
./python  ./Tools/scripts/run_tests.py -v test_os
== CPython 3.10.5 (main, Jul 27 2022, 19:31:59) [GCC 10.2.1 20210110]
== Linux-5.10.0-12-amd64-x86_64-with-glibc2.31 little-endian
== cwd: /home/mint/Downloads/Python-3.10.5/build/test_python_60256æ
== CPU count: 2
== encodings: locale=UTF-8, FS=utf-8
Using random seed 881896
0:00:00 load avg: 0.69 Run tests in parallel using 4 child processes
0:00:03 load avg: 0.71 [1/1/1] test_os failed (1 failure)
test_blocking (test.test_os.BlockingTests) ... ok
test_compare_to_walk (test.test_os.BytesFwalkTests) ... ok
test_dir_fd (test.test_os.BytesFwalkTests) ... ok
test_fd_leak (test.test_os.BytesFwalkTests) ... ok
test_file_like_path (test.test_os.BytesFwalkTests) ... ok
test_walk_bad_dir (test.test_os.BytesFwalkTests) ... ok
test_walk_bottom_up (test.test_os.BytesFwalkTests) ... ok
test_walk_prune (test.test_os.BytesFwalkTests) ... ok
test_walk_symlink (test.test_os.BytesFwalkTests) ... ok
test_walk_topdown (test.test_os.BytesFwalkTests) ... ok
test_yields_correct_dir_fd (test.test_os.BytesFwalkTests) ... ok
test_file_like_path (test.test_os.BytesWalkTests) ... ok
test_walk_bad_dir (test.test_os.BytesWalkTests) ... ok
test_walk_bottom_up (test.test_os.BytesWalkTests) ... ok
test_walk_many_open_files (test.test_os.BytesWalkTests) ... ok
test_walk_prune (test.test_os.BytesWalkTests) ... ok
test_walk_symlink (test.test_os.BytesWalkTests) ... ok
test_walk_topdown (test.test_os.BytesWalkTests) ... ok
test_cpu_count (test.test_os.CPUCountTests) ... ok
test_chown_gid (test.test_os.ChownFileTests) ... skipped 'test needs at least 2 groups'
test_chown_uid_gid_arguments_must_be_index (test.test_os.ChownFileTests) ... ok
test_chown_with_root (test.test_os.ChownFileTests) ... ok
test_chown_without_permission (test.test_os.ChownFileTests) ... skipped 'test needs non-root account and more than one user'
test_devnull (test.test_os.DevNullTests) ... ok
test_bad_fd (test.test_os.DeviceEncodingTests) ... ok
test_device_encoding (test.test_os.DeviceEncodingTests) ... ok
test___repr__ (test.test_os.EnvironTests)
Check that the repr() of os.environ looks like environ({...}). ... ok
test_bool (test.test_os.EnvironTests) ... ok
test_constructor (test.test_os.EnvironTests) ... ok
test_environb (test.test_os.EnvironTests) ... ok
test_get (test.test_os.EnvironTests) ... ok
test_get_exec_path (test.test_os.EnvironTests) ... ok
test_getitem (test.test_os.EnvironTests) ... ok
test_ior_operator (test.test_os.EnvironTests) ... ok
test_ior_operator_invalid_dicts (test.test_os.EnvironTests) ... ok
test_ior_operator_key_value_iterable (test.test_os.EnvironTests) ... ok
test_items (test.test_os.EnvironTests) ... ok
test_iter_error_when_changing_os_environ (test.test_os.EnvironTests) ... ok
test_iter_error_when_changing_os_environ_items (test.test_os.EnvironTests) ... ok
test_iter_error_when_changing_os_environ_values (test.test_os.EnvironTests) ... ok
test_key_type (test.test_os.EnvironTests) ... ok
test_keys (test.test_os.EnvironTests) ... ok
test_keyvalue_types (test.test_os.EnvironTests) ... ok
test_len (test.test_os.EnvironTests) ... ok
test_or_operator (test.test_os.EnvironTests) ... ok
test_os_popen_iter (test.test_os.EnvironTests) ... ok
test_pop (test.test_os.EnvironTests) ... ok
test_popitem (test.test_os.EnvironTests) ... ok
test_putenv_unsetenv (test.test_os.EnvironTests) ... ok
test_putenv_unsetenv_error (test.test_os.EnvironTests) ... ok
test_read (test.test_os.EnvironTests) ... ok
test_ror_operator (test.test_os.EnvironTests) ... ok
test_setdefault (test.test_os.EnvironTests) ... ok
test_update (test.test_os.EnvironTests) ... ok
test_update2 (test.test_os.EnvironTests) ... ok
test_values (test.test_os.EnvironTests) ... ok
test_write (test.test_os.EnvironTests) ... ok
test_eventfd_initval (test.test_os.EventfdTests) ... ok
test_eventfd_select (test.test_os.EventfdTests) ... ok
test_eventfd_semaphore (test.test_os.EventfdTests) ... ok
test_execv_with_bad_arglist (test.test_os.ExecTests) ... ok
test_execve_invalid_env (test.test_os.ExecTests) ... ok
test_execve_with_empty_path (test.test_os.ExecTests) ... skipped 'Win32-specific test'
test_execvpe_with_bad_arglist (test.test_os.ExecTests) ... ok
test_execvpe_with_bad_program (test.test_os.ExecTests) ... ok
test_internal_execvpe_str (test.test_os.ExecTests) ... ok
test_os_all (test.test_os.ExportsTests) ... ok
test_fds (test.test_os.ExtendedAttributeTests) ... skipped 'no non-broken extended attribute support'
test_lpath (test.test_os.ExtendedAttributeTests) ... skipped 'no non-broken extended attribute support'
test_simple (test.test_os.ExtendedAttributeTests) ... skipped 'no non-broken extended attribute support'
test_dup (test.test_os.FDInheritanceTests) ... ok
test_dup2 (test.test_os.FDInheritanceTests) ... ok
test_dup_nul (test.test_os.FDInheritanceTests) ... skipped 'win32-specific test'
test_dup_standard_stream (test.test_os.FDInheritanceTests) ... ok
test_get_inheritable_cloexec (test.test_os.FDInheritanceTests) ... ok
test_get_set_inheritable (test.test_os.FDInheritanceTests) ... ok
test_get_set_inheritable_badf (test.test_os.FDInheritanceTests) ... ok
test_get_set_inheritable_o_path (test.test_os.FDInheritanceTests) ... ok
test_open (test.test_os.FDInheritanceTests) ... ok
test_openpty (test.test_os.FDInheritanceTests) ... ok
test_pipe (test.test_os.FDInheritanceTests) ... ok
test_set_inheritable_cloexec (test.test_os.FDInheritanceTests) ... ok
test_identity (test.test_os.FSEncodingTests) ... ok
test_nop (test.test_os.FSEncodingTests) ... ok
test_access (test.test_os.FileTests) ... ok
test_closerange (test.test_os.FileTests) ... ok
test_copy_file_range (test.test_os.FileTests) ... ok
test_copy_file_range_invalid_values (test.test_os.FileTests) ... ok
test_copy_file_range_offset (test.test_os.FileTests) ... ok
test_fdopen (test.test_os.FileTests) ... ok
test_large_read (test.test_os.FileTests) ... skipped 'not enough memory: 2.0G minimum needed'
test_open_keywords (test.test_os.FileTests) ... ok
test_read (test.test_os.FileTests) ... ok
test_rename (test.test_os.FileTests) ... ok
test_replace (test.test_os.FileTests) ... ok
test_splice (test.test_os.FileTests) ... ok
test_splice_invalid_values (test.test_os.FileTests) ... ok
test_splice_offset_in (test.test_os.FileTests) ... ok
test_splice_offset_out (test.test_os.FileTests) ... ok
test_symlink_keywords (test.test_os.FileTests) ... ok
test_write (test.test_os.FileTests) ... ok
test_write_windows_console (test.test_os.FileTests) ... skipped 'test specific to the Windows console'
test_fork (test.test_os.ForkTests) ... ok
test_compare_to_walk (test.test_os.FwalkTests) ... ok
test_dir_fd (test.test_os.FwalkTests) ... ok
test_fd_leak (test.test_os.FwalkTests) ... ok
test_file_like_path (test.test_os.FwalkTests) ... ok
test_walk_bad_dir (test.test_os.FwalkTests) ... ok
test_walk_bottom_up (test.test_os.FwalkTests) ... ok
test_walk_prune (test.test_os.FwalkTests) ... ok
test_walk_symlink (test.test_os.FwalkTests) ... ok
test_walk_topdown (test.test_os.FwalkTests) ... ok
test_yields_correct_dir_fd (test.test_os.FwalkTests) ... ok
test_getrandom0 (test.test_os.GetRandomTests) ... ok
test_getrandom_nonblock (test.test_os.GetRandomTests) ... ok
test_getrandom_random (test.test_os.GetRandomTests) ... ok
test_getrandom_type (test.test_os.GetRandomTests) ... ok
test_getrandom_value (test.test_os.GetRandomTests) ... ok
test_link (test.test_os.LinkTests) ... ok
test_link_bytes (test.test_os.LinkTests) ... ok
test_unicode_name (test.test_os.LinkTests) ... ok
test_getlogin (test.test_os.LoginTests) ... skipped 'Skip due to platform/environment differences on *NIX buildbots'
test_exist_ok_existing_directory (test.test_os.MakedirTests) ... ok
test_exist_ok_existing_regular_file (test.test_os.MakedirTests) ... ok
test_exist_ok_s_isgid_directory (test.test_os.MakedirTests) ... ok
test_makedir (test.test_os.MakedirTests) ... ok
test_mode (test.test_os.MakedirTests) ... ok
test_memfd_create (test.test_os.MemfdCreateTests) ... ok
test_getcwd (test.test_os.MiscTests) ... ok
test_getcwd_long_path (test.test_os.MiscTests) ... Tested current directory length: 2000
ok
test_getcwdb (test.test_os.MiscTests) ... ok
test_directory_link_nonlocal (test.test_os.NonLocalSymlinkTests)
The symlink target should resolve relative to the link, not relative ... ok
test_oserror_filename (test.test_os.OSErrorTests) ... ok
test_path_t_converter (test.test_os.PathTConverterTests) ... ok
test_path_t_converter_and_custom_class (test.test_os.PathTConverterTests) ... ok
test_listdir (test.test_os.Pep383Tests) ... ok
test_open (test.test_os.Pep383Tests) ... ok
test_stat (test.test_os.Pep383Tests) ... ok
test_statvfs (test.test_os.Pep383Tests) ... ok
test_getppid (test.test_os.PidTests) ... ok
test_waitpid (test.test_os.PidTests) ... ok
test_waitpid_windows (test.test_os.PidTests) ... skipped 'win32-specific test'
test_waitstatus_to_exitcode (test.test_os.PidTests) ... ok
test_waitstatus_to_exitcode_kill (test.test_os.PidTests) ... ok
test_waitstatus_to_exitcode_windows (test.test_os.PidTests) ... skipped 'win32-specific test'
test_setegid (test.test_os.PosixUidGidTests) ... ok
test_seteuid (test.test_os.PosixUidGidTests) ... ok
test_setgid (test.test_os.PosixUidGidTests) ... ok
test_setregid (test.test_os.PosixUidGidTests) ... ok
test_setregid_neg1 (test.test_os.PosixUidGidTests) ... ok
test_setreuid (test.test_os.PosixUidGidTests) ... ok
test_setreuid_neg1 (test.test_os.PosixUidGidTests) ... ok
test_setuid (test.test_os.PosixUidGidTests) ... ok
test_set_get_priority (test.test_os.ProgramPriorityTests) ... ok
test_bytes (test.test_os.ReadlinkTests) ... ok
test_missing_link (test.test_os.ReadlinkTests) ... ok
test_not_symlink (test.test_os.ReadlinkTests) ... ok
test_pathlike (test.test_os.ReadlinkTests) ... ok
test_pathlike_bytes (test.test_os.ReadlinkTests) ... ok
test_remove_all (test.test_os.RemoveDirsTests) ... ok
test_remove_nothing (test.test_os.RemoveDirsTests) ... ok
test_remove_partial (test.test_os.RemoveDirsTests) ... ok
test_nowait (test.test_os.SpawnTests) ... ok
test_spawnl (test.test_os.SpawnTests) ... ok
test_spawnl_noargs (test.test_os.SpawnTests) ... ok
test_spawnle (test.test_os.SpawnTests) ... ok
test_spawnle_noargs (test.test_os.SpawnTests) ... ok
test_spawnlp (test.test_os.SpawnTests) ... ok
test_spawnlpe (test.test_os.SpawnTests) ... ok
test_spawnv (test.test_os.SpawnTests) ... ok
test_spawnv_noargs (test.test_os.SpawnTests) ... ok
test_spawnve (test.test_os.SpawnTests) ... ok
test_spawnve_bytes (test.test_os.SpawnTests) ... ok
test_spawnve_invalid_env (test.test_os.SpawnTests) ... ok
test_spawnve_noargs (test.test_os.SpawnTests) ... ok
test_spawnvp (test.test_os.SpawnTests) ... ok
test_spawnvpe (test.test_os.SpawnTests) ... ok
test_spawnvpe_invalid_env (test.test_os.SpawnTests) ... ok
test_15261 (test.test_os.StatAttributeTests) ... skipped 'Win32 specific tests'
test_1686475 (test.test_os.StatAttributeTests) ... skipped 'Win32 specific tests'
test_access_denied (test.test_os.StatAttributeTests) ... skipped 'Win32 specific tests'
test_file_attributes (test.test_os.StatAttributeTests) ... skipped 'st_file_attributes is Win32 specific'
test_stat_attributes (test.test_os.StatAttributeTests) ... ok
test_stat_attributes_bytes (test.test_os.StatAttributeTests) ... ok
test_stat_block_device (test.test_os.StatAttributeTests) ... skipped 'Win32 specific tests'
test_stat_result_pickle (test.test_os.StatAttributeTests) ... ok
test_statvfs_attributes (test.test_os.StatAttributeTests) ... ok
test_statvfs_result_pickle (test.test_os.StatAttributeTests) ... ok
test_does_not_crash (test.test_os.TermsizeTests)
Check if get_terminal_size() returns a meaningful value. ... skipped 'failed to query terminal size'
test_stty_match (test.test_os.TermsizeTests)
Check if stty returns the same results ... ok
test_uninstantiable (test.test_os.TestDirEntry) ... ok
test_unpickable (test.test_os.TestDirEntry) ... ok
test_blocking (test.test_os.TestInvalidFD) ... ok
test_closerange (test.test_os.TestInvalidFD) ... ok
test_dup (test.test_os.TestInvalidFD) ... ok
test_dup2 (test.test_os.TestInvalidFD) ... ok
test_fchdir (test.test_os.TestInvalidFD) ... ok
test_fchmod (test.test_os.TestInvalidFD) ... ok
test_fchown (test.test_os.TestInvalidFD) ... ok
test_fdatasync (test.test_os.TestInvalidFD) ... ok
test_fdopen (test.test_os.TestInvalidFD) ... ok
test_fpathconf (test.test_os.TestInvalidFD) ... ok
test_fstat (test.test_os.TestInvalidFD) ... ok
test_fstatvfs (test.test_os.TestInvalidFD) ... ok
test_fsync (test.test_os.TestInvalidFD) ... ok
test_ftruncate (test.test_os.TestInvalidFD) ... ok
test_inheritable (test.test_os.TestInvalidFD) ... ok
test_isatty (test.test_os.TestInvalidFD) ... ok
test_lseek (test.test_os.TestInvalidFD) ... ok
test_read (test.test_os.TestInvalidFD) ... ok
test_readv (test.test_os.TestInvalidFD) ... ok
test_tcgetpgrp (test.test_os.TestInvalidFD) ... ok
test_tcsetpgrpt (test.test_os.TestInvalidFD) ... ok
test_ttyname (test.test_os.TestInvalidFD) ... ok
test_write (test.test_os.TestInvalidFD) ... ok
test_writev (test.test_os.TestInvalidFD) ... ok
test_argument_required (test.test_os.TestPEP519) ... ok
test_bad_pathlike (test.test_os.TestPEP519) ... ok
test_fsencode_fsdecode (test.test_os.TestPEP519) ... ok
test_garbage_in_exception_out (test.test_os.TestPEP519) ... ok
test_pathlike (test.test_os.TestPEP519) ... ok
test_pathlike_class_getitem (test.test_os.TestPEP519) ... ok
test_pathlike_subclasshook (test.test_os.TestPEP519) ... ok
test_return_bytes (test.test_os.TestPEP519) ... ok
test_return_string (test.test_os.TestPEP519) ... ok
test_argument_required (test.test_os.TestPEP519PurePython) ... ok
test_bad_pathlike (test.test_os.TestPEP519PurePython) ... ok
test_fsencode_fsdecode (test.test_os.TestPEP519PurePython) ... ok
test_garbage_in_exception_out (test.test_os.TestPEP519PurePython) ... ok
test_pathlike (test.test_os.TestPEP519PurePython) ... ok
test_pathlike_class_getitem (test.test_os.TestPEP519PurePython) ... ok
test_pathlike_subclasshook (test.test_os.TestPEP519PurePython) ... ok
test_return_bytes (test.test_os.TestPEP519PurePython) ... ok
test_return_string (test.test_os.TestPEP519PurePython) ... ok
test_attributes (test.test_os.TestScandir) ... FAIL
test_bad_path_type (test.test_os.TestScandir) ... ok
test_broken_symlink (test.test_os.TestScandir) ... ok
test_bytes (test.test_os.TestScandir) ... ok
test_bytes_like (test.test_os.TestScandir) ... ok
test_close (test.test_os.TestScandir) ... ok
test_consume_iterator_twice (test.test_os.TestScandir) ... ok
test_context_manager (test.test_os.TestScandir) ... ok
test_context_manager_close (test.test_os.TestScandir) ... ok
test_context_manager_exception (test.test_os.TestScandir) ... ok
test_current_directory (test.test_os.TestScandir) ... ok
test_empty_path (test.test_os.TestScandir) ... ok
test_fd (test.test_os.TestScandir) ... ok
test_fspath_protocol (test.test_os.TestScandir) ... ok
test_fspath_protocol_bytes (test.test_os.TestScandir) ... ok
test_removed_dir (test.test_os.TestScandir) ... ok
test_removed_file (test.test_os.TestScandir) ... ok
test_repr (test.test_os.TestScandir) ... ok
test_resource_warning (test.test_os.TestScandir) ... ok
test_uninstantiable (test.test_os.TestScandir) ... ok
test_unpickable (test.test_os.TestScandir) ... ok
test_flags (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support'
test_headers (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support'
test_headers_overflow_32bits (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support'
test_invalid_offset (test.test_os.TestSendfile) ... ok
test_keywords (test.test_os.TestSendfile) ... ok
test_offset_overflow (test.test_os.TestSendfile) ... ok
test_send_at_certain_offset (test.test_os.TestSendfile) ... ok
test_send_whole_file (test.test_os.TestSendfile) ... ok
test_trailers (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support'
test_trailers_overflow_32bits (test.test_os.TestSendfile) ... skipped 'requires headers and trailers support'
test_times (test.test_os.TimesTests) ... ok
test_urandom_failure (test.test_os.URandomFDTests) ... skipped 'os.random() does not use a file descriptor'
test_urandom_fd_closed (test.test_os.URandomFDTests) ... skipped 'os.random() does not use a file descriptor'
test_urandom_fd_reopened (test.test_os.URandomFDTests) ... skipped 'os.random() does not use a file descriptor'
test_urandom_length (test.test_os.URandomTests) ... ok
test_urandom_subprocess (test.test_os.URandomTests) ... ok
test_urandom_value (test.test_os.URandomTests) ... ok
test_issue31577 (test.test_os.UtimeTests) ... ok
test_large_time (test.test_os.UtimeTests) ... skipped 'requires NTFS'
test_utime (test.test_os.UtimeTests) ... ok
test_utime_by_indexed (test.test_os.UtimeTests) ... ok
test_utime_by_times (test.test_os.UtimeTests) ... ok
test_utime_current (test.test_os.UtimeTests) ... ok
test_utime_current_old (test.test_os.UtimeTests) ... ok
test_utime_dir_fd (test.test_os.UtimeTests) ... ok
test_utime_directory (test.test_os.UtimeTests) ... ok
test_utime_fd (test.test_os.UtimeTests) ... ok
test_utime_invalid_arguments (test.test_os.UtimeTests) ... ok
test_utime_nofollow_symlinks (test.test_os.UtimeTests) ... ok
test_file_like_path (test.test_os.WalkTests) ... ok
test_walk_bad_dir (test.test_os.WalkTests) ... ok
test_walk_bottom_up (test.test_os.WalkTests) ... ok
test_walk_many_open_files (test.test_os.WalkTests) ... ok
test_walk_prune (test.test_os.WalkTests) ... ok
test_walk_symlink (test.test_os.WalkTests) ... ok
test_walk_topdown (test.test_os.WalkTests) ... ok
test_chdir (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests'
test_chmod (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests'
test_mkdir (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests'
test_remove (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests'
test_rename (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests'
test_utime (test.test_os.Win32ErrorTests) ... skipped 'Win32 specific tests'
test_create_junction (test.test_os.Win32JunctionTests) ... skipped 'Win32 specific tests'
test_unlink_removes_junction (test.test_os.Win32JunctionTests) ... skipped 'Win32 specific tests'
test_CTRL_BREAK_EVENT (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests'
test_CTRL_C_EVENT (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests'
test_kill_int (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests'
test_kill_sigterm (test.test_os.Win32KillTests) ... skipped 'Win32 specific tests'
test_listdir_extended_path (test.test_os.Win32ListdirTests)
Test when the path starts with '\\?\'. ... skipped 'Win32 specific tests'
test_listdir_no_extended_path (test.test_os.Win32ListdirTests)
Test when the path is not an "extended" path. ... skipped 'Win32 specific tests'
test_getfinalpathname_handles (test.test_os.Win32NtTests) ... skipped 'Win32 specific tests'
test_stat_unlink_race (test.test_os.Win32NtTests) ... skipped 'Win32 specific tests'
test_12084 (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_29248 (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_appexeclink (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_buffer_overflow (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_directory_link (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_file_link (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_isdir_on_directory_link_to_missing_target (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_remove_directory_link_to_missing_target (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
test_rmdir_on_directory_link_to_missing_target (test.test_os.Win32SymlinkTests) ... skipped 'Win32 specific tests'
======================================================================
FAIL: test_attributes (test.test_os.TestScandir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mint/Downloads/Python-3.10.5/Lib/test/test_os.py", line 4223, in test_attributes
    self.check_entry(entry, 'dir', True, False, False)
  File "/home/mint/Downloads/Python-3.10.5/Lib/test/test_os.py", line 4174, in check_entry
    self.assertEqual(entry.inode(),
AssertionError: 58992 != 10933
----------------------------------------------------------------------
Ran 316 tests in 3.339s
FAILED (failures=1, skipped=52)
test test_os failed
== Tests result: FAILURE ==
1 test failed:
    test_os
0:00:03 load avg: 0.71
0:00:03 load avg: 0.71 Re-running failed tests in verbose mode
0:00:03 load avg: 0.71 Re-running test_os in verbose mode (matching: test_attributes)
test_attributes (test.test_os.TestScandir) ... FAIL
======================================================================
FAIL: test_attributes (test.test_os.TestScandir)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mint/Downloads/Python-3.10.5/Lib/test/test_os.py", line 4223, in test_attributes
    self.check_entry(entry, 'dir', True, False, False)
  File "/home/mint/Downloads/Python-3.10.5/Lib/test/test_os.py", line 4174, in check_entry
    self.assertEqual(entry.inode(),
AssertionError: 59211 != 11048
----------------------------------------------------------------------
Ran 1 test in 0.005s
FAILED (failures=1)
test test_os failed
1 test failed again:
    test_os
== Tests result: FAILURE then FAILURE ==
1 test failed:
    test_os
1 re-run test:
    test_os
Total duration: 4.0 sec
Tests result: FAILURE then FAILURE
make: *** [Makefile:1224: test] Error 2

В RADME сказано, что если такое происходит то скорее всего проблема в самом Python! Сам интерпретатор при этом работает, т.е я могу запустить его набрав python3.10

Вопрос: это действительно какой-то странный баг самого Python, или всё же проблема в моём окружении?
ПС: Если это баг, тогда просьба к местным сторожилам, - зарепортите его! а то мой английский оставляет желать лучшего

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version