Mock Version: 3.1 Mock Version: 3.1 Mock Version: 3.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-flexmock.spec'], chrootPath='/var/lib/mock/epel8-build-39494151-4897590/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-flexmock.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False sh: /usr/bin/python3.6: No such file or directory sh: /usr/bin/python3.6: No such file or directory Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-flexmock-0.10.10-2.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-flexmock.spec'], chrootPath='/var/lib/mock/epel8-build-39494151-4897590/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-flexmock.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IxjMUh + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf flexmock-0.10.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/flexmock-0.10.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd flexmock-0.10.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MbEDrl + umask 022 + cd /builddir/build/BUILD + cd flexmock-0.10.10 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3.6 setup.py build '--executable=/usr/bin/python3.6 -s' running build running build_py creating build creating build/lib copying flexmock.py -> build/lib + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6uhzp3 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch ++ dirname /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch + cd flexmock-0.10.10 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=z13 -mtune=z14 -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3.6 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr creating /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib creating /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib/python3.6/site-packages copying build/lib/flexmock.py -> /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib/python3.6/site-packages byte-compiling /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib/python3.6/site-packages/flexmock.py to flexmock.cpython-36.pyc writing byte-compilation script '/tmp/tmps6q9ixm2.py' /usr/bin/python3.6 /tmp/tmps6q9ixm2.py removing /tmp/tmps6q9ixm2.py running install_egg_info running egg_info writing flexmock.egg-info/PKG-INFO writing dependency_links to flexmock.egg-info/dependency_links.txt writing top-level names to flexmock.egg-info/top_level.txt reading manifest file 'flexmock.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'flexmock.egg-info/SOURCES.txt' Copying flexmock.egg-info to /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib/python3.6/site-packages/flexmock-0.10.10-py3.6.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh -j3 --strict-build-id -m -i --build-id-seed 0.10.10-2.el8 --unique-debug-suffix -0.10.10-2.el8.noarch --unique-debug-src-base python-flexmock-0.10.10-2.el8.noarch --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/flexmock-0.10.10 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile '' 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/lib/python3.6 using /usr/libexec/platform-python + /usr/lib/rpm/brp-python-hardlink + PYTHON3=/usr/bin/python3.6 + /usr/lib/rpm/redhat/brp-mangle-shebangs Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YTLEIl + umask 022 + cd /builddir/build/BUILD + cd flexmock-0.10.10 + PYEXECS=/usr/bin/python3.6 + ./tests/run_tests.sh unittest for /usr/bin/python3.6 .............................................................................................................................................................................................................. ---------------------------------------------------------------------- Ran 206 tests in 0.051s OK nose for /usr/bin/python3.6 NOT FOUND py.test for /usr/bin/python3.6 ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 rootdir: /builddir/build/BUILD/flexmock-0.10.10, inifile: collected 386 items tests/flexmock_pytest_test.py .......................................... [ 10%] ........................................................................ [ 29%] ........................................................................ [ 48%] ........................................................................ [ 66%] ........................................................................ [ 85%] ....................................................xxxx [100%] ==================== 382 passed, 4 xfailed in 0.59 seconds ===================== twisted for /usr/bin/python3.6 flexmock_pytest_test TestUnittestClass test_and_return_defaults_to_none_with_no_arguments ... [OK] test_arg_matching_with_regexp_fails_when_regexp_doesnt_match_karg ... [OK] test_arg_matching_with_regexp_fails_when_regexp_doesnt_match_kwarg ... [OK] test_arg_matching_works_with_regexp ... [OK] test_at_least_cannot_be_specified_until_at_most_is_set ... [OK] test_at_least_cannot_be_used_twice ... [OK] test_at_most_cannot_be_specified_until_at_least_is_set ... [OK] test_at_most_cannot_be_used_twice ... [OK] test_calling_with_keyword_args_matches_mock_with_positional_args ... [OK] test_calling_with_positional_args_matches_mock_with_kwargs ... [OK] test_class_attributes_are_unchanged_after_mocking ... [OK] test_class_attributes_are_unchanged_after_spying ... [OK] test_expectation_dot_mock_should_return_mock ... [OK] test_expectation_properties_work_with_parens ... [OK] test_fake_object_supporting_iteration ... [OK] test_fake_object_takes_properties ... [OK] test_flexmock_class_returns_same_object_on_repeated_calls ... [OK] test_flexmock_configures_global_mocks_dict ... [OK] test_flexmock_doesnt_error_on_properly_ordered_expectations ... [OK] test_flexmock_errors_on_improperly_ordered_expectations ... [OK] test_flexmock_expectations_returns_all ... [OK] test_flexmock_expectations_returns_named_expectation ... [OK] test_flexmock_expectations_returns_none_if_not_found ... [OK] test_flexmock_function_should_return_previously_mocked_object ... [OK] test_flexmock_get_flexmock_expectation_should_work_with_args ... [OK] test_flexmock_object_returns_same_object_on_repeated_calls ... [OK] test_flexmock_ordered_worked_after_default_stub ... [OK] test_flexmock_ordered_works_with_same_args ... [OK] test_flexmock_ordered_works_with_same_args_after_default_stub ... [OK] test_flexmock_preserves_stubbed_class_methods_between_tests ... [OK] test_flexmock_preserves_stubbed_object_methods_between_tests ... [OK] test_flexmock_removes_new_stubs_from_classes_after_tests ... [OK] test_flexmock_removes_new_stubs_from_objects_after_tests ... [OK] test_flexmock_removes_stubs_from_multiple_classes_on_teardown ... [OK] test_flexmock_removes_stubs_from_multiple_objects_on_teardown ... [OK] test_flexmock_respects_at_least_when_called_less_than_requested ... [OK] test_flexmock_respects_at_least_when_called_more_than_requested ... [OK] test_flexmock_respects_at_least_when_called_requested_number ... [OK] test_flexmock_respects_at_most_when_called_less_than_requested ... [OK] test_flexmock_respects_at_most_when_called_more_than_requested ... [OK] test_flexmock_respects_at_most_when_called_requested_number ... [OK] test_flexmock_should_accept_multiple_return_values ... [OK] test_flexmock_should_accept_multiple_return_values_with_shortcut ... [OK] test_flexmock_should_accept_shortcuts_for_creating_expectations ... [OK] test_flexmock_should_accept_shortcuts_for_creating_mock_object ... [OK] test_flexmock_should_add_expectations ... [OK] test_flexmock_should_blow_up_on_wrong_spy_exception_type ... [OK] test_flexmock_should_blow_up_on_wrong_spy_return_values ... [OK] test_flexmock_should_call_respects_matched_expectations ... [OK] test_flexmock_should_call_respects_unmatched_expectations ... [OK] test_flexmock_should_call_should_match_keyword_arguments ... [OK] test_flexmock_should_check_parameters ... [OK] test_flexmock_should_check_raised_exceptions ... [OK] test_flexmock_should_check_raised_exceptions_class_with_args ... [OK] test_flexmock_should_check_raised_exceptions_instance_with_args ... [OK] test_flexmock_should_cleanup_added_methods_and_attributes ... [OK] test_flexmock_should_cleanup_after_exception ... [OK] test_flexmock_should_create_mock_object ... [OK] test_flexmock_should_create_mock_object_from_dict ... [OK] test_flexmock_should_create_partial_new_style_class_mock ... [OK] test_flexmock_should_create_partial_new_style_object_mock ... [OK] test_flexmock_should_create_partial_old_style_class_mock ... [OK] test_flexmock_should_create_partial_old_style_object_mock ... [OK] test_flexmock_should_fail_mocking_nonexistent_methods ... [OK] test_flexmock_should_fail_to_match_exactly_no_args_when_calling_with_args ... [OK] test_flexmock_should_keep_track_of_calls ... [OK] test_flexmock_should_match_any_args_by_default ... [OK] test_flexmock_should_match_exactly_no_args ... [OK] test_flexmock_should_match_expectations_against_builtin_classes ... [OK] test_flexmock_should_match_expectations_against_user_defined_classes ... [OK] test_flexmock_should_match_keyword_arguments ... [OK] test_flexmock_should_match_spy_exception_parent_type ... [OK] test_flexmock_should_match_types_on_multiple_arguments ... [OK] test_flexmock_should_match_types_on_multiple_arguments_classes ... [OK] test_flexmock_should_match_types_on_multiple_arguments_generic ... [OK] test_flexmock_should_mix_multiple_return_values_with_exceptions ... [OK] test_flexmock_should_mock_double_underscore_method ... [OK] test_flexmock_should_mock_generators ... [OK] test_flexmock_should_mock_iter_on_new_style_instances ... [OK] test_flexmock_should_mock_new_instances_with_multiple_params ... [OK] test_flexmock_should_mock_private_class_methods ... [OK] test_flexmock_should_mock_private_methods ... [OK] test_flexmock_should_mock_private_methods_with_leading_underscores ... [OK] test_flexmock_should_mock_same_class_twice ... [OK] test_flexmock_should_mock_special_methods ... [OK] test_flexmock_should_mock_the_same_method_multiple_times ... [OK] test_flexmock_should_not_add_class_methods_if_they_already_exist ... [OK] test_flexmock_should_not_add_methods_if_they_already_exist ... [OK] test_flexmock_should_not_blow_up_on_should_call_for_class_methods ... [OK] test_flexmock_should_not_blow_up_on_should_call_for_static_methods ... [OK] test_flexmock_should_not_explode_on_unicode_formatting ... [OK] test_flexmock_should_not_return_class_object_if_mocking_instance ... [OK] test_flexmock_should_properly_restore_class_methods ... [OK] test_flexmock_should_properly_restore_module_level_functions ... [OK] test_flexmock_should_properly_restore_static_methods ... [OK] test_flexmock_should_properly_restore_undecorated_static_methods ... [OK] test_flexmock_should_replace_cannot_be_specified_twice ... [OK] test_flexmock_should_replace_method ... [OK] test_flexmock_should_return_value ... [OK] test_flexmock_should_revert_new_instances_on_teardown ... [OK] test_flexmock_should_set_expectation_call_numbers ... [OK] test_flexmock_should_support_mocking_new_style_classes_as_functions ... [OK] test_flexmock_should_support_mocking_old_style_classes_as_functions ... [OK] test_flexmock_should_verify_correct_spy_regexp_return_values ... [OK] test_flexmock_should_verify_correct_spy_return_values ... [OK] test_flexmock_should_verify_spy_matches_exception_message ... [OK] test_flexmock_should_verify_spy_matches_exception_regexp ... [OK] test_flexmock_should_verify_spy_matches_exception_regexp_mismatch ... [OK] test_flexmock_should_verify_spy_raises_correct_exception_class ... [OK] test_flexmock_spy_should_not_clobber_original_method ... [OK] test_flexmock_teardown_does_not_verify_stubs ... [OK] test_flexmock_teardown_verifies_mocks ... [OK] test_flexmock_treats_once_as_times_one ... [OK] test_flexmock_treats_twice_as_times_two ... [OK] test_flexmock_works_with_never_when_false ... [OK] test_flexmock_works_with_never_when_true ... [OK] test_format_args_supports_tuples ... [OK] test_is_class_method ... [OK] test_is_static_method ... [OK] test_isproperty ... [OK] test_mock_chained_method_calls_works_with_more_than_one_level ... [OK] test_mock_chained_method_calls_works_with_one_level ... [OK] test_mock_chained_method_supports_args_and_mocks ... [OK] test_mock_class_method_on_derived_class ... [OK] test_mock_class_method_on_derived_class_after_mocking_base_class ... [OK] test_mock_class_method_with_args_on_derived_class ... [OK] test_mock_class_method_with_args_on_derived_class_after_mocking_base_class ... [OK] test_mock_property_with_attribute_on_class ... [OK] test_mock_property_with_attribute_on_instance ... [OK] test_mock_static_method_on_derived_class ... [OK] test_mock_static_method_on_derived_class_after_mocking_base_class ... [OK] test_mock_static_method_with_args_on_derived_class ... [OK] test_mock_static_method_with_args_on_derived_class_after_mocking_base_class ... [OK] test_mocking_down_the_inheritance_chain_class_to_class ... [OK] test_mocking_subclass_of_str ... [OK] test_module_level_function_with_kwargs ... [OK] test_new_instances_raises_error_when_not_a_class ... [OK] test_new_instances_should_be_a_method ... [OK] test_new_instances_should_blow_up_on_should_receive ... [OK] test_new_instances_works_with_multiple_return_values ... [OK] test_non_callable_attributes_fail_to_set_expectations ... [OK] test_ordered_on_different_methods ... [OK] test_pass_thru_should_call_original_method_only_once ... [OK] test_proper_reset_of_subclass_methods ... [OK] test_replace_non_callable_class_attributes ... [OK] test_replace_non_callable_instance_attributes ... [OK] test_replace_non_callable_module_attributes ... [OK] test_return_value_should_not_explode_on_unicode_values ... [OK] test_should_call_alias_should_create_a_spy ... [OK] test_should_call_fails_properly_for_same_method_with_different_args ... [OK] test_should_call_on_class_mock ... [OK] test_should_call_works_for_same_method_with_different_args ... [OK] test_should_chain_attributes ... [OK] test_should_give_reasonable_error_for_builtins ... [OK] test_should_give_reasonable_error_for_instances_of_builtins ... [OK] test_should_receive_should_not_replace_flexmock_methods ... [OK] test_should_replace_attributes_that_are_instances_of_classes ... [OK] test_spy_class_method_on_derived_class ... [OK] test_spy_class_method_on_derived_class_after_spying_base_class ... [OK] test_spy_class_method_with_args_on_derived_class ... [OK] test_spy_should_match_return_value_class ... [OK] test_spy_should_not_match_falsy_stuff ... [OK] test_spy_static_method_on_derived_class ... [OK] test_spy_static_method_on_derived_class_after_spying_base_class ... [OK] test_spy_static_method_with_args_on_derived_class ... [OK] test_state_machine ... [OK] test_support_at_least_and_at_most_together ... [OK] test_type_flexmock_with_unicode_string_in_should_receive ... [OK] test_unittest ... [OK] test_use_replace_with_for_callable_shortcut_kwargs ... [OK] test_verifying_methods_when_mocking_module ... [OK] test_with_args_blows_up_on_invalid_kwarg ... [OK] test_with_args_blows_up_on_kwarg_overlapping_positional ... [OK] test_with_args_blows_up_on_too_few_args ... [OK] test_with_args_blows_up_on_too_few_args_with_kwargs ... [OK] test_with_args_blows_up_on_too_many_args ... [OK] test_with_args_does_compensate_for_cls_on_class_methods ... [OK] test_with_args_does_not_compensate_for_self_on_static_class_methods ... [OK] test_with_args_does_not_compensate_for_self_on_static_instance_methods ... [OK] test_with_args_doesnt_set_max_when_using_kwargs ... [OK] test_with_args_doesnt_set_max_when_using_varargs ... [OK] test_with_args_for_single_named_arg_with_optional_args ... [OK] test_with_args_ignores_invalid_args_on_flexmock_instances ... [OK] test_with_args_on_class_mock ... [OK] test_with_args_should_work_with_builtin_c_functions ... [OK] test_with_args_should_work_with_builtin_c_methods ... [OK] test_with_args_should_work_with_builtin_python_methods ... [OK] test_with_args_with_class_method ... [OK] test_with_args_with_instance_method ... [OK] test_with_args_with_static_method ... [OK] ------------------------------------------------------------------------------- Ran 190 tests in 0.064s PASSED (successes=190) + exit 0 Processing files: python3-flexmock-0.10.10-2.el8.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2IJsgP + umask 022 + cd /builddir/build/BUILD + cd flexmock-0.10.10 + DOCDIR=/builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/doc/python3-flexmock + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/doc/python3-flexmock + cp -pr README.rst /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/doc/python3-flexmock + cp -pr CHANGELOG /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/doc/python3-flexmock + cp -pr docs/ /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/doc/python3-flexmock + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.jmcj66 + umask 022 + cd /builddir/build/BUILD + cd flexmock-0.10.10 + LICENSEDIR=/builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/licenses/python3-flexmock + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/licenses/python3-flexmock + cp -pr LICENSE /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch/usr/share/licenses/python3-flexmock + exit 0 Provides: python3-flexmock = 0.10.10-2.el8 python3.6dist(flexmock) = 0.10.10 python3dist(flexmock) = 0.10.10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 3.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-flexmock-0.10.10-2.el8.noarch Wrote: /builddir/build/RPMS/python3-flexmock-0.10.10-2.el8.noarch.rpm Child return code was: 0