• Help needed with src:pkg click when building against Python 3.10 (1/3)

    From Mike Gabriel@21:1/5 to All on Sun May 29 09:00:01 2022
    This message is in MIME format and has been PGP signed.

    Hi all (esp. doko and Colin),
    (pls Cc: me when replying, thanks)
    (mail resent, now with debian-python ML in Cc:, please reply to this
    mail, so discussion ends on the list, thanks)

    as part of my work for the UBports Foundation, I am currently working
    on getting software components of Ubuntu Touch to Debian. One of those comment is the src:pkg click (one of Colin's former upstream projects).

    We see various test failures recently when running unit tests of click against Python 3.10. It seems that something regarding file descriptor inheritance in subprocess calls has changed between Python 3.9 and
    Python 3.10 which I fail to pinpoint exactly.

    At the end of the mail you find a build log excerpt where you can see
    that the unit test script loops over python3.9 and python3 (aka
    python3.10 in unstable) when running the unit tests. Whereas tests
    under python3.9 succeed (first block of test results), tests under python3(.10) fail (second block of test results).

    The reported errors all resemble this pattern:

    ```
    test_install (click_package.tests.test_install.TestClickInstaller) ... b'ERROR:root:[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click9a_gafth/root/test-package/1.0\', \'--admindir\', \'/tmp/click9a_gafth/root/test-package/1.0/.click\',
    \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click9a_gafth/root/.click/log\', \'--no-triggers\',
    \'--install\', \'/tmp/click9a_gafth/fake-package.click\'] failed with exit_code 1:\ndpkg-split: error: failed to read archive \'/tmp/click9a_gafth/fake-package.click\': Bad file descriptor\ndpkg:
    error processing archive /tmp/click9a_gafth/fake-package.click
    (--install):\n subprocess dpkg-split returned error exit status
    2\nErrors were encountered while processing:\n /tmp/click9a_gafth/fake-package.click\n\nTraceback (most recent call
    last):\n File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line
    497, in run_in_subprocess\n yield partial(helper, lib_path,
    rpreloads), preloads\n File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line 476, in test_install\n installer.install(path)\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install\n package_name, package_version, old_version = self._unpack(\n File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack\n fn(command,\n File "/usr/lib/python3.10/subprocess.py", line 420, in check_output\n return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,\n File "/usr/lib/python3.10/subprocess.py", line 524, in
    run\n raise CalledProcessError(retcode, process.args,\nsubprocess.CalledProcessError: Command \'[\'dpkg\', \'--force-not-root\', \'--force-bad-path\', \'--force-architecture\', \'--instdir\', \'/tmp/click9a_gafth/root/test-package/1.0\',
    \'--admindir\', \'/tmp/click9a_gafth/root/test-package/1.0/.click\', \'--path-exclude\', \'*/.click/*\', \'--log\', \'/tmp/click9a_gafth/root/.click/log\', \'--no-triggers\',
    \'--install\', \'/tmp/click9a_gafth/fake-package.click\']\' returned
    non-zero exit status 1.\n'
    ERROR
    ```

    The core information in above error output is:

    ```
    dpkg-split: error: failed to read archive '/tmp/click9a_gafth/fake-package.click': Bad file descriptor
    dpkg: error processing archive /tmp/click9a_gafth/fake-package.click (--install):
    subprocess dpkg-split returned error exit status 2
    ```

    I am suspecting some FD handover in click's install.py for being the
    point where something fails, but I am unsure. And why does fail in
    Python 3.10, but not in 3.9? https://gitlab.com/ubports/core/click/-/blob/main/click_package/install.py#L397

    Also I found a comment by Colin that might be related (but why only
    with Python 3.10??): https://gitlab.com/ubports/core/click/-/blob/main/preload/clickpreload.c#L298



    Does anyone have a spontaneous idea what might be causing the observed
    test failures under Python 3.10? Maybe someone can point me to a
    commit in Python upstream where things in subprocess might have
    started to change? Any help is greatly appreciated!!!


    Thanks,
    Mike




    ```
    make check-local
    make[3]: Entering directory '/<<PKGBUILDDIR>>'
    set -e; for python in python3.9 python3; do \
    $python setup.py test; \
    done
    /usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
    warnings.warn(tmpl.format(**locals()))
    running test
    WARNING: Testing via this command is deprecated and will be removed in
    a future version. Users looking for a generic test entry point
    independent of test runner are encouraged to use tox.
    running egg_info
    creating click.egg-info
    writing click.egg-info/PKG-INFO
    writing dependency_links to click.egg-info/dependency_links.txt
    writing top-level names to click.egg-info/top_level.txt
    writing manifest file 'click.egg-info/SOURCES.txt'
    reading manifest file 'click.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'click.egg-info/SOURCES.txt'
    running build_ext
    /usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
    warnings.warn(tmpl.format(**locals()))
    running test
    WARNING: Testing via this command is deprecated and will be removed in
    a future version. Users looking for a generic test entry point
    independent of test runner are encouraged to use tox.
    running egg_info
    writing click.egg-info/PKG-INFO
    writing dependency_links to click.egg-info/dependency_links.txt
    writing top-level names to click.egg-info/top_level.txt
    reading manifest file 'click.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'click.egg-info/SOURCES.txt'
    running build_ext
    test_hook_name_absent (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_install (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_invalid_app_id
    (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_open (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_open_unopenable_file (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_remove (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_remove_package
    (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands
    (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_invalid (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_valid_with_single_version (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_sync (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_upgrade (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_hook_name_absent
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
    test_install (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_removes_previous (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_invalid_app_id
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
    test_open (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_remove (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_remove_package
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_run_commands
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_short_id_valid
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
    test_sync (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_sync_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_sync_without_user_db (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
    test_upgrade (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_double_dollar
    (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_expands_missing_keys_to_empty_string (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_expands_provided_keys (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_possible_expansion (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_preserves_unmatched_dollar (click_package.tests.test_hooks.TestClickPatternFormatter) ... ok test_links_are_kept_multiple_frameworks (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ...
    ok
    test_links_are_kept_on_validate_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ...
    ok
    test_links_are_removed_on_missing_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ...
    ok
    test_links_are_removed_on_missing_multiple_framework (click_package.tests.test_hooks.TestPackageHooksValidateFramework) ...
    ok
    test_installs_new_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_removes_old_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_upgrades_existing_hooks (click_package.tests.test_hooks.TestPackageInstallHooks) ... ok test_removes_hooks
    (click_package.tests.test_hooks.TestPackageRemoveHooks) ... ok test_init_fileobj (click_package.tests.test_arfile.TestArFile) ... ok test_init_name (click_package.tests.test_arfile.TestArFile) ... ok test_init_rejects_mode_r (click_package.tests.test_arfile.TestArFile) ... ok test_init_rejects_readonly_fileobj (click_package.tests.test_arfile.TestArFile) ... ok
    test_writes_valid_ar_file (click_package.tests.test_arfile.TestArFile) ... ok test_find_package_directory (click_package.tests.test_query.TestQuery) ... ok test_find_package_directory_missing (click_package.tests.test_query.TestQuery) ... ok test_find_package_directory_outside (click_package.tests.test_query.TestQuery) ... ok
    test_get_db_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_get_frameworks_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_get_hooks_dir (click_package.tests.test_paths.TestClickPaths) ... ok test_app_stops_on_remove (click_package.tests.test_user.StopAppTestCase) ...
    ** (process:294239): WARNING **: 22:13:46.326: user.vala:637: Can not
    connect to logind

    ** (process:294239): WARNING **: 22:13:46.326: user.vala:672: Can not
    get the dbus session to stop app (Failed to open file “/run/user/1000/dbus-session”: No such file or directory)

    ** (process:294239): WARNING **: 22:13:46.330: user.vala:737: Error
    removing cache for 'meep': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/meep': No such file or directory
    ok
    test_ensure_db_chown_fails
    (click_package.tests.test_user.TestClickUser) ... ok test_ensure_db_getpwnam_fails
    (click_package.tests.test_user.TestClickUser) ... ok
    test_ensure_db_mkdir_fails
    (click_package.tests.test_user.TestClickUser) ... ok
    test_ensure_db_ownership (click_package.tests.test_user.TestClickUser) ... ok test_get_manifest (click_package.tests.test_user.TestClickUser) ... ok test_get_manifest_multiple_root
    (click_package.tests.test_user.TestClickUser) ... ok
    test_get_manifests (click_package.tests.test_user.TestClickUser) ... ok test_get_manifests_multiple_root (click_package.tests.test_user.TestClickUser) ...
    ** (process:294239): WARNING **: 22:13:47.434: user.vala:737: Error
    removing cache for 'b': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/b': No such file or directory
    ok
    test_get_overlay_db (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names_missing
    (click_package.tests.test_user.TestClickUser) ... ok test_get_package_names_multiple_root (click_package.tests.test_user.TestClickUser) ... ok
    test_get_path (click_package.tests.test_user.TestClickUser) ... ok test_get_path_multiple_root
    (click_package.tests.test_user.TestClickUser) ... ok
    test_get_version (click_package.tests.test_user.TestClickUser) ... ok test_get_version_missing (click_package.tests.test_user.TestClickUser) ... ok test_get_version_multiple_root
    (click_package.tests.test_user.TestClickUser) ... ok
    test_hidden (click_package.tests.test_user.TestClickUser) ...
    ** (process:294239): WARNING **: 22:13:47.451: user.vala:737: Error
    removing cache for 'b': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/b': No such file or directory
    ok
    test_is_removable (click_package.tests.test_user.TestClickUser) ... ok test_is_removable_multiple_root
    (click_package.tests.test_user.TestClickUser) ... ok
    test_new_db_not_directory (click_package.tests.test_user.TestClickUser) ... ok test_new_no_db (click_package.tests.test_user.TestClickUser) ... ok
    test_remove (click_package.tests.test_user.TestClickUser) ...
    ** (process:294239): WARNING **: 22:13:48.173: user.vala:737: Error
    removing cache for 'a': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/a': No such file or directory
    ok
    test_remove_missing (click_package.tests.test_user.TestClickUser) ... ok test_remove_multiple_root (click_package.tests.test_user.TestClickUser) ...
    ** (process:294239): WARNING **: 22:13:48.176: user.vala:737: Error
    removing cache for 'a': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/a': No such file or directory

    ** (process:294239): WARNING **: 22:13:48.176: user.vala:737: Error
    removing cache for 'b': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/b': No such file or directory

    ** (process:294239): WARNING **: 22:13:48.176: user.vala:737: Error
    removing cache for 'c': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/c': No such file or directory
    ok
    test_remove_multiple_root_creates_overlay_directory (click_package.tests.test_user.TestClickUser) ...
    ** (process:294239): WARNING **: 22:13:48.178: user.vala:737: Error
    removing cache for 'a': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/a': No such file or directory
    ok
    test_set_version_changed (click_package.tests.test_user.TestClickUser) ... ok test_set_version_missing (click_package.tests.test_user.TestClickUser) ... ok test_set_version_missing_target
    (click_package.tests.test_user.TestClickUser) ... ok test_set_version_multiple_root
    (click_package.tests.test_user.TestClickUser) ... ok test_set_version_restore_to_underlay (click_package.tests.test_user.TestClickUser) ... ok test_remove_does_not_follow_if_xdg_dir_is_symlink (click_package.tests.test_user.UserDataRemovalTestCase)
    Ensure that if the user-cach dir is a symlink that symlink is ... ok test_remove_does_not_follow_symlinks_inside_dir (click_package.tests.test_user.UserDataRemovalTestCase)
    Ensure that symlinks that are inside a user-data dir get removed, ... ok test_remove_removes_cache_only (click_package.tests.test_user.UserDataRemovalTestCase)
    Ensure that app cache for user is removed if a click is removed ... ok test_scripts (click_package.tests.test_scripts.TestScripts) ... ok
    test_add (click_package.tests.test_database.TestClickDB) ... ok test_has_package_version
    (click_package.tests.test_database.TestClickDB) ... ok
    test_manifest (click_package.tests.test_database.TestClickDB) ... ok test_manifest_bad (click_package.tests.test_database.TestClickDB) ... ok test_manifests_all (click_package.tests.test_database.TestClickDB) ... ok test_manifests_current (click_package.tests.test_database.TestClickDB) ... ok test_no_db_conf_errors (click_package.tests.test_database.TestClickDB) ... ok test_no_read (click_package.tests.test_database.TestClickDB) ... ok test_overlay (click_package.tests.test_database.TestClickDB) ... ok test_packages_all (click_package.tests.test_database.TestClickDB) ... ok test_packages_current (click_package.tests.test_database.TestClickDB) ... ok test_path (click_package.tests.test_database.TestClickDB) ... ok test_read_configuration (click_package.tests.test_database.TestClickDB) ... ok test_read_nonexistent (click_package.tests.test_database.TestClickDB) ... ok test_read_not_directory (click_package.tests.test_database.TestClickDB) ... ok test_equal_to
    (click_package.tests.test_database.TestClickInstalledPackage) ...
    expected failure
    test_hash (click_package.tests.test_database.TestClickInstalledPackage) ... ok test_any_app_running_bad_manifest (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_missing_app (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_no_app_pid_command (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_no_hooks (click_package.tests.test_database.TestClickSingleDB) ... ok test_any_app_running_ubuntu_app_pid (click_package.tests.test_database.TestClickSingleDB) ... ok
    test_app_running (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership
    (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_failed_chown (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_missing_clickpkg_user (click_package.tests.test_database.TestClickSingleDB) ... ok test_ensure_ownership_quick_if_correct (click_package.tests.test_database.TestClickSingleDB) ... skipped 'See https://gitlab.com/ubports/core/click/-/issues/5'
    test_gc (click_package.tests.test_database.TestClickSingleDB) ... ok test_gc_fixes_old_user_registrations (click_package.tests.test_database.TestClickSingleDB) ... ok test_gc_ignores_non_directory (click_package.tests.test_database.TestClickSingleDB) ... ok test_has_package_version (click_package.tests.test_database.TestClickSingleDB) ... ok
    test_manifest (click_package.tests.test_database.TestClickSingleDB) ... ok test_manifest_bad (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_not_running (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_registered (click_package.tests.test_database.TestClickSingleDB) ... ok test_maybe_remove_running (click_package.tests.test_database.TestClickSingleDB) ... ok
    test_packages_all (click_package.tests.test_database.TestClickSingleDB) ... ok test_packages_all_ignores_non_directory (click_package.tests.test_database.TestClickSingleDB) ... ok test_packages_current
    (click_package.tests.test_database.TestClickSingleDB) ... ok
    test_path (click_package.tests.test_database.TestClickSingleDB) ... ok
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    skipped 'Skipping integration tests'
    test_pep8_clean (click_package.tests.test_static.TestStatic) ... ok test_pyflakes_clean (click_package.tests.test_static.TestStatic) ... ok test_fields (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks
    (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_ignores_other_files (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_ignores_unopenable_files (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_nonexistent (click_package.tests.test_framework.TestClickFramework) ... ok test_get_frameworks_not_directory (click_package.tests.test_framework.TestClickFramework) ... ok test_has_framework
    (click_package.tests.test_framework.TestClickFramework) ... ok
    test_open (click_package.tests.test_framework.TestClickFramework) ... ok test_add_file (click_package.tests.test_build.TestClickBuilder) ... ok test_build (click_package.tests.test_build.TestClickBuilder) ... ok test_build_excludes_dot_click (click_package.tests.test_build.TestClickBuilder) ... ok test_build_ignore_pattern
    (click_package.tests.test_build.TestClickBuilder) ...
    WARNING:root:Ignoring missing framework "ubuntu-sdk-13.10"
    ok
    test_build_multiple_architectures (click_package.tests.test_build.TestClickBuilder) ... ok test_build_multiple_frameworks (click_package.tests.test_build.TestClickBuilder) ... ok
    test_epochless_version
    (click_package.tests.test_build.TestClickBuilder) ... ok test_manifest_syntax_error
    (click_package.tests.test_build.TestClickBuilder) ... ok
    test_read_manifest (click_package.tests.test_build.TestClickBuilder) ... ok test_validate_framework_bad (click_package.tests.test_build.TestClickFrameworkValidation) ... ok test_validate_framework_good (click_package.tests.test_build.TestClickFrameworkValidation) ... ok test_add_file (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_build (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_epochless_version (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_manifest_syntax_error (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_read_manifest
    (click_package.tests.test_build.TestClickSourceBuilder) ... ok test_audit_bad_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_broken_md5sums (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_forbids_depends (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_forbids_maintscript (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_invalid_manifest_json (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_matching_md5sums (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_dot_slash (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_framework (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_missing_framework_force (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_multiple_frameworks (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_name_bad_character (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_new_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_click_version (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_framework
    (click_package.tests.test_install.TestClickInstaller) ... ok
    test_audit_no_name
    (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_no_signature
    (click_package.tests.test_install.TestClickInstaller) ... skipped
    'this test needs debsig-verify'
    test_audit_no_version
    (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_passes_correct_package (click_package.tests.test_install.TestClickInstaller) ... ok test_audit_requires_manifest (click_package.tests.test_install.TestClickInstaller) ... ok
    test_install (click_package.tests.test_install.TestClickInstaller) ... ok test_multiple_architectures (click_package.tests.test_install.TestClickInstaller) ... ok test_no_write_permission (click_package.tests.test_install.TestClickInstaller) ... ok test_reinstall_preinstalled (click_package.tests.test_install.TestClickInstaller) ...
    ** (process:294239): WARNING **: 22:14:02.947: user.vala:637: Can not
    connect to logind

    ** (process:294239): WARNING **: 22:14:02.947: user.vala:737: Error
    removing cache for 'test-package': Error opening directory '/tmp/tmp8r6u_pyd/XDG_CACHE_HOME/test-package': No such file or
    directory
    ok
    test_sandbox (click_package.tests.test_install.TestClickInstaller) ... ok test_single_architecture (click_package.tests.test_install.TestClickInstaller) ... ok
    test_upgrade (click_package.tests.test_install.TestClickInstaller) ... ok test_world_readable
    (click_package.tests.test_install.TestClickInstaller) ... ok test_dir_open_error
    (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_dir_read_name_directory_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_dir_read_name_directory_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_error
    (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_previously_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_previously_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_missing_environment (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_present_executable (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_present_not_executable (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_find_on_path_requires_regular_file (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_error
    (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_file_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_link_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_missing
    (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_symlink_unlink_error (click_package.tests.test_osextras.TestOSExtrasNative) ... ok
    test_umask (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_error
    (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasNative) ... ok test_ensuredir_oserror
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_ensuredir_previously_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_ensuredir_previously_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_missing_environment (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_present_executable (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_present_not_executable (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_find_on_path_requires_regular_file (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_directory_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_directory_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_listdir_oserror
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_link_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_missing
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_oserror
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_unlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok
    test_umask (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_oserror
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok

    ----------------------------------------------------------------------
    Ran 225 tests in 31.610s

    OK (skipped=13, expected failures=1) /usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
    warnings.warn(tmpl.format(**locals()))
    running test
    WARNING: Testing via this command is deprecated and will be removed in
    a future version. Users looking for a generic test entry point
    independent of test runner are encouraged to use tox. /usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
    warnings.warn(
    running egg_info
    writing click.egg-info/PKG-INFO
    writing dependency_links to click.egg-info/dependency_links.txt
    writing requirements to click.egg-info/requires.txt
    writing top-level names to click.egg-info/top_level.txt
    reading manifest file 'click.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'click.egg-info/SOURCES.txt'
    running build_ext
    /usr/lib/python3/dist-packages/setuptools/dist.py:493: UserWarning: Normalizing '0.5.0-6' to '0.5.0.post6'
    warnings.warn(tmpl.format(**locals()))
    running test
    WARNING: Testing via this command is deprecated and will be removed in
    a future version. Users looking for a generic test entry point
    independent of test runner are encouraged to use tox.
    running egg_info
    writing click.egg-info/PKG-INFO
    writing dependency_links to click.egg-info/dependency_links.txt
    deleting click.egg-info/requires.txt
    writing top-level names to click.egg-info/top_level.txt
    reading manifest file 'click.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'click.egg-info/SOURCES.txt'
    running build_ext
    test_hook_name_absent (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_install (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_trailing_slash (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_install_package_uses_deepest_copy (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_invalid_app_id
    (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_open (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_open_unopenable_file (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_remove (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_remove_package
    (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands
    (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_run_commands_fail (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_invalid (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_short_id_valid_with_single_version (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok
    test_sync (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_upgrade (click_package.tests.test_hooks.TestClickHookSystemLevel) ... ok test_hook_name_absent
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_hook_name_present (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok
    test_install (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package
    (click_package.tests.test_hooks.TestClickHookUserLevel) ... ok test_install_package_removes_previous

    [continued in next message]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)