Powered by /dev/null. Your IP: 3.236.50.79 | python-sure 5caa040a-47a0-43df-a99e-9abd81b9d567Toc:- prep
Executing(%prep): /bin/sh -e /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.18gQIo
- build
Executing(%build): /bin/sh -e /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.hiO76N
- error 1
FAIL: test_old_api.test_context_is_not_optional
- error 2
TypeError: test_context_is_not_optional.<locals>.it_crashes() takes 0 positional arguments but 1 was given
- error 3
AssertionError: <function test_context_is_not_optional.<locals>.it_crashes at 0x7f588208cee0> raised TypeError, but the exception message does not
- error 4
error: Test failed: <unittest.runner.TextTestResult run=51 errors=0 failures=1>
- error 5
error: Bad exit status from /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.hiO76N (%build)
- error 6
RPM build errors:
- error 7
error: No files produced.
Content:request from: qboosh
checking if we should skip the build
started at: Thu Apr 28 18:35:00 2022
killing old processes on a builder
sending signal 9 to pid -1
cleaning up /tmp
fetching https://srcbuilder.pld-linux.org/th//srpms/5caa040a-47a0-43df-a99e-9abd81b9d567/python-sure-2.0.0-1.src.rpm
fetched 58716 bytes, 155.0 K/s
installing srpm: python-sure-2.0.0-1.src.rpm
+ install -d /tmp/B.3h606c5b/BUILD /tmp/B.3h606c5b/RPMS
+ LC_ALL=en_US.UTF-8
+ rpm -qp --changelog python-sure-2.0.0-1.src.rpm
* Thu Apr 28 2022 PLD Linux Team <feedback@pld-linux.org>
- For complete changelog see: http://git.pld-linux.org/?p=packages/python-sure.git;a=log;h=master
* Thu Apr 28 2022 Jakub Bogusz <qboosh@pld-linux.org> fa519a1 - updated to 2.0.0
* Wed Mar 30 2022 Jan Rękorajski <baggins@pld-linux.org> 81b3c6c - rebuild with tests and docs
* Sat Mar 26 2022 Jan Rękorajski <baggins@pld-linux.org> c60c3af - rebuild with python 3.10
* Tue Mar 02 2021 Jan Rękorajski <baggins@pld-linux.org> 37858b1 - release 2 (by relup.sh)
* Sat Jun 06 2020 Jakub Bogusz <qboosh@pld-linux.org> efd08cc - updated to 1.4.11
- added mock patch (use unittest.mock instead of separate mock under py3)
* Mon Oct 28 2019 Jan Rękorajski <baggins@pld-linux.org> ae9a5ca - rebuild with python 3.8
- release 4 (by relup.sh)
* Sun Jul 01 2018 Arkadiusz Miśkiewicz <arekm@maven.pl> 07db4e4 - release 3 (by relup.sh)
* Thu Dec 29 2016 Arkadiusz Miśkiewicz <arekm@maven.pl> 0c90bf4 - python 3.6
- release 2 (by relup.sh)
* Tue Sep 06 2016 Elan Ruusamäe <glen@delfi.ee> b57e180 - up to 1.2.24
* Sun Nov 29 2015 Jacek Konieczny <jajcus@jajcus.net> f1c8fb3 - BR: rpmbuild(macros) >= 1.710
* Sat Nov 28 2015 Jacek Konieczny <jajcus@jajcus.net> 84f8281 - release 5 (by relup.sh)
* Sat Nov 28 2015 Jacek Konieczny <jajcus@jajcus.net> 5cbb06d - automatic change: use py_build/py_install macros
* Mon Sep 14 2015 Arkadiusz Miśkiewicz <arekm@maven.pl> 6171de8 - release 4 (by relup.sh)
* Mon Jul 06 2015 Mateusz Korniak <matkor@pld-linux.org> 0b5d1b0 - Release 3. Added BRs.
* Mon Jul 06 2015 Mateusz Korniak <matkor@pld-linux.org> e746740 - Release 2. Fixed Python 3.4 build and tests.
* Fri Jul 03 2015 Mateusz Korniak <matkor@pld-linux.org> 66ec76e - Version 1.2.12-1.
* Fri Mar 06 2015 Arkadiusz Miśkiewicz <arekm@maven.pl> 5d118f3 - up to 1.2.9
+ rpm -Uhv --nodeps --define '_topdir /tmp/B.3h606c5b' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' python-sure-2.0.0-1.src.rpm
Updating / installing...
python-sure-2.0.0-1 ########################################
+ rm -f python-sure-2.0.0-1.src.rpm
+ install -m 700 -d /tmp/B.3h606c5b/BUILD/tmp
+ TMPDIR=/tmp/B.3h606c5b/BUILD/tmp
+ exec nice -n 0 rpmbuild -bp --short-circuit --nodeps --define '_topdir /tmp/B.3h606c5b' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux --define 'prep exit 0' /tmp/B.3h606c5b/python-sure.spec
warning: Could not canonicalize hostname: ymir
Building target platforms: x86_64-pld-linux
Building for target x86_64-pld-linux
checking BuildConflict-ing packages
rpm: warning: Could not canonicalize hostname: ymir
rpm: Building target platforms: x86_64-pld-linux
rpm: Building for target x86_64-pld-linux
no BuildConflicts found
checking BR
rpm: warning: Could not canonicalize hostname: ymir
rpm: Building target platforms: x86_64-pld-linux
rpm: Building for target x86_64-pld-linux
no BR needed
building RPM using: set -ex; : build-id: 5caa040a-47a0-43df-a99e-9abd81b9d567; TMPDIR=/tmp/B.3h606c5b/BUILD/tmp exec nice -n 0 rpmbuild -bb --define '__jobs 9' --define '_smp_mflags -j9' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.3h606c5b' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.3h606c5b/python-sure.spec
+ : build-id: 5caa040a-47a0-43df-a99e-9abd81b9d567
+ TMPDIR=/tmp/B.3h606c5b/BUILD/tmp
+ exec nice -n 0 rpmbuild -bb --define '__jobs 9' --define '_smp_mflags -j9' --define '_make_opts -Otarget' --define '_pld_builder 1' --define '_topdir /tmp/B.3h606c5b' --define '_specdir %{_topdir}' --define '_sourcedir %{_specdir}' --define '_rpmdir %{_topdir}/RPMS' --define '_builddir %{_topdir}/BUILD' --target x86_64-pld-linux /tmp/B.3h606c5b/python-sure.spec
warning: Could not canonicalize hostname: ymir
Building target platforms: x86_64-pld-linux
Building for target x86_64-pld-linux
Executing(%prep): /bin/sh -e /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.18gQIo
+ umask 022
+ cd /tmp/B.3h606c5b/BUILD
+ cd /tmp/B.3h606c5b/BUILD
+ rm -rf sure-2.0.0
+ /bin/gzip -dc /tmp/B.3h606c5b/sure-2.0.0.tar.gz
+ /bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd sure-2.0.0
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (python-sure-mock.patch):'
Patch #0 (python-sure-mock.patch):
+ </tmp/B.3h606c5b/python-sure-mock.patch
+ /usr/bin/patch -s -p1 '--fuzz=0'
+ RPM_EC=0
+ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.hiO76N
TMP=/home/users/builder/tmp
HOME=/home/users/builder
PATH=/home/users/builder/GNUstep/Tools:/bin:/usr/bin:/usr/local/bin:/home/users/builder/bin
TMPDIR=/tmp/B.3h606c5b/BUILD/tmp
+ umask 022
+ cd /tmp/B.3h606c5b/BUILD
+ cd sure-2.0.0
+ LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc '
+ export LDFLAGS
+ CFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 '
+ export CFLAGS
+ CXXFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 '
+ export CXXFLAGS
+ CC=x86_64-pld-linux-gcc
+ export CC
+ CXX=x86_64-pld-linux-g++
+ export CXX
+ /usr/bin/python2 setup.py build '--build-base=build-2' test
running build
running build_py
creating build-2
creating build-2/lib
creating build-2/lib/sure
copying sure/__init__.py -> build-2/lib/sure
copying sure/cli.py -> build-2/lib/sure
copying sure/compat.py -> build-2/lib/sure
copying sure/core.py -> build-2/lib/sure
copying sure/deprecated.py -> build-2/lib/sure
copying sure/magic.py -> build-2/lib/sure
copying sure/old.py -> build-2/lib/sure
copying sure/registry.py -> build-2/lib/sure
copying sure/stubs.py -> build-2/lib/sure
copying sure/terminal.py -> build-2/lib/sure
copying sure/version.py -> build-2/lib/sure
running egg_info
writing requirements to sure.egg-info/requires.txt
writing sure.egg-info/PKG-INFO
writing top-level names to sure.egg-info/top_level.txt
writing dependency_links to sure.egg-info/dependency_links.txt
writing entry points to sure.egg-info/entry_points.txt
reading manifest file 'sure.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'sure.egg-info/SOURCES.txt'
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 build_ext
/usr/share/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'rednose' in config file 'setup.cfg' ignored: excluded by runtime environment
/usr/share/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'with-coverage' in config file 'setup.cfg' ignored: excluded by runtime environment
/usr/share/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-inclusive' in config file 'setup.cfg' ignored: excluded by runtime environment
/usr/share/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-package' in config file 'setup.cfg' ignored: excluded by runtime environment
/usr/share/python2.7/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-branches' in config file 'setup.cfg' ignored: excluded by runtime environment
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
issues.test_issue_104.test_issue_104 ... ok
issues.test_issue_134.test_issue_132
Correctly handle {} characters in matcher string ... ok
issues.test_issue_136.test_issue_136
Test for unicode error when comparing bytes ... ok
issues.test_issue_139.test_issue_139
Test for GitHub Issue #139 ... ok
issues.test_issue_148.test_should_compare_dict_with_non_orderable_key_types ... ok
issues.test_issue_148.test_should_compare_dict_with_enum_keys ... ok
issues.test_issue_19.test_issue_19
Allow monkey-patching of methods already implemented by sure. ... ok
issues.test_issue_48.test_issue_48 ... ok
test_assertion_builder.test_assertion_builder_synonyms
this, it, these and those are all synonyms ... ok
test_assertion_builder.test_4_equal_2p2
this(4).should.equal(2 + 2) ... ok
test_assertion_builder.test_2_within_0a2
this(1).should.be.within(0, 2) ... ok
test_assertion_builder.test_true_be_ok
this(True).should.be.ok ... ok
test_assertion_builder.test_false_be_falsy
this(False).should.be.false ... ok
test_assertion_builder.test_none
this(None).should.be.none ... ok
test_assertion_builder.test_should_be_a
this(None).should.be.none ... ok
test_assertion_builder.test_should_be_callable
this(function).should.be.callable ... ok
test_assertion_builder.test_iterable_should_be_empty
this(iterable).should.be.empty ... ok
test_assertion_builder.test_iterable_should_have_length_of
this(iterable).should.have.length_of(N) ... ok
test_assertion_builder.test_greater_than
this(X).should.be.greater_than(Y) ... ok
test_assertion_builder.test_greater_than_or_equal_to
this(X).should.be.greater_than_or_equal_to(Y) ... ok
test_assertion_builder.test_lower_than
this(X).should.be.lower_than(Y) ... ok
test_assertion_builder.test_lower_than_or_equal_to
this(X).should.be.lower_than_or_equal_to(Y) ... ok
test_assertion_builder.test_be
this(X).should.be(X) when X is a reference to the same object ... ok
test_assertion_builder.test_have_property
this(instance).should.have.property(property_name) ... ok
test_assertion_builder.test_have_property_with_value
this(instance).should.have.property(property_name).being or .with_value should allow chain up ... ok
test_assertion_builder.test_have_key
this(dictionary).should.have.key(key_name) ... ok
test_assertion_builder.test_have_key_with_value
this(dictionary).should.have.key(key_name).being or .with_value should allow chain up ... ok
test_assertion_builder.test_look_like
this(' aa ... ok
test_assertion_builder.test_equal_with_repr_of_complex_types_and_unicode
test usage of repr() inside expect(complex1).to.equal(complex2) ... ok
test_assertion_builder.test_equal_with_repr_of_complex_types_and_repr
test usage of repr() inside expect(complex1).to.equal(complex2) ... ok
test_assertion_builder.test_match_regex
expect('some string').to.match(r'\w{4} \w{6}') matches regex ... ok
test_assertion_builder.test_match_contain
expect('some string').to.contain('tri') ... ok
test_assertion_builder.test_catching_exceptions ... ok
test_assertion_builder.test_catching_exceptions_with_params ... ok
test_assertion_builder.test_success_with_params ... ok
test_assertion_builder.test_success_with_params_exception ... ok
test_assertion_builder.test_throw_matching_regex ... ok
test_assertion_builder.test_should_not_be_different
'something'.should_not.be.different('SOMETHING'.lower()) ... ok
test_assertion_builder.test_equals_handles_mock_call_list
.equal() Should convert mock._CallList instances to lists ... ok
test_assertion_builder.test_equals_handles_float_with_epsilon
.equal(what, epsilon=XXX) should check for equality with an epsilon for float values ... ok
test_assertion_builder.test_equals_dictionaries_with_tuple_keys
.equal() with dict containing tuples as keys should work ... ok
test_assertion_builder.test_ordereddict_comparison
.equal(OrderedDict) should check if two ordered dicts are the same ... ok
test_assertion_builder.test_equals_anything ... ok
test_assertion_builder.test_equals_crosstype ... ok
test_custom_assertions.test_custom_assertion
test extending sure with a custom assertion. ... ok
test_custom_assertions.test_custom_chain_method
test extending sure with a custom chain method. ... ok
test_custom_assertions.test_custom_chain_property
test extending sure with a custom chain property. ... ok
test_ensure_ctxmgr.test_ensure_simple_assertion
Test ensure simple assertion ... ok
test_ensure_ctxmgr.test_ensure_just_assertion_error
Test that ensure only captures AssertionErrors ... ok
test_old_api.test_setup_with_context
sure.with_context() runs setup before the function itself ... ok
test_old_api.test_context_is_not_optional
sure.that_with_context() when no context is given it fails ... ok
test_old_api.test_setup_with_context_context_failing
sure.that_with_context() in a failing test ... ok
test_old_api.test_teardown_with_context
sure.with_context() runs teardown before the function itself ... ok
test_old_api.test_that_is_a
that() is_a(object) ... ok
test_old_api.test_that_equals
that() equals(string) ... ok
test_old_api.test_that_differs
that() differs(object) ... ok
test_old_api.test_that_has
that() has(object) ... ok
test_old_api.test_that_at_key_equals
that().at(object).equals(object) ... ok
test_old_api.test_that_len_is
that() len_is(number) ... ok
test_old_api.test_that_len_greater_than
that() len_greater_than(number) ... ok
test_old_api.test_that_len_greater_than_should_raise_assertion_error
that() len_greater_than(number) raise AssertionError ... ok
test_old_api.test_that_len_greater_than_or_equals
that() len_greater_than_or_equals(number) ... ok
test_old_api.test_that_len_greater_than_or_equals_should_raise_assertion_error
that() len_greater_than_or_equals(number) raise AssertionError ... ok
test_old_api.test_that_len_lower_than
that() len_lower_than(number) ... ok
test_old_api.test_that_len_lower_than_should_raise_assertion_error
that() len_lower_than(number) raise AssertionError ... ok
test_old_api.test_that_len_lower_than_or_equals
that() len_lower_than_or_equals(number) ... ok
test_old_api.test_that_len_lower_than_or_equals_should_raise_assertion_error
that() len_lower_than_or_equals(number) raise AssertionError ... ok
test_old_api.test_that_checking_all_atributes
that(iterable).the_attribute('name').equals('value') ... ok
test_old_api.test_that_checking_all_atributes_of_range
that(iterable, within_range=(1, 2)).the_attribute('name').equals('value') ... ok
test_old_api.test_that_checking_all_elements
that(iterable).every_one_is('value') ... ok
test_old_api.test_that_checking_each_matches
that(iterable).in_each('').equals('value') ... ok
test_old_api.test_that_raises
that(callable, with_args=[arg1], and_kwargs={'arg2': 'value'}).raises(SomeException) ... ok
test_old_api.test_that_looks_like
that('String\n with BREAKLINE').looks_like('string with breakline') ... ok
test_old_api.test_that_raises_does_raise_for_exception_type_mismatch
that(callable(RuntimeError)).raises(TypeError) ... ok
test_old_api.test_that_raises_with_args
that(callable, with_args=['foo']).raises(FooError) ... ok
test_old_api.test_that_does_not_raise_with_args
that(callable).doesnt_raise(FooError) and does_not_raise ... ok
test_old_api.test_that_contains_string
that('foobar').contains('foo') ... ok
test_old_api.test_that_doesnt_contain_string
that('foobar').does_not_contain('123'), .doesnt_contain ... ok
test_old_api.test_that_contains_none
that('foobar').contains(None) ... ok
test_old_api.test_that_none_contains_string
that(None).contains('bungalow') ... ok
test_old_api.test_that_some_iterable_is_empty
that(some_iterable).is_empty and that(something).are_empty ... ok
test_old_api.test_that_something_is_empty_raises
that(something_not_iterable).is_empty and that(something_not_iterable).are_empty raises ... ok
test_old_api.test_that_something_iterable_matches_another
that(something_iterable).matches(another_iterable) ... ok
test_old_api.test_within_pass
within(five=miliseconds) will pass ... ok
test_old_api.test_within_fail
within(five=miliseconds) will fail ... ok
test_old_api.test_word_to_number ... ok
test_old_api.test_word_to_number_fail ... ok
test_old_api.test_microsecond_unit
testing microseconds convertion ... ok
test_old_api.test_milisecond_unit
testing miliseconds convertion ... ok
test_old_api.test_second_unit
testing seconds convertion ... ok
test_old_api.test_minute_unit
testing minutes convertion ... ok
test_old_api.test_within_pass_utc
within(five=miliseconds) gives utc parameter ... ok
test_old_api.test_that_is_a_matcher_should_absorb_callables_to_be_used_as_matcher
that.is_a_matcher should absorb callables to be used as matcher ... ok
test_old_api.test_accepts_setup_list
sure.with_context() accepts a list of callbacks for setup ... ok
test_old_api.test_accepts_teardown_list
sure.with_context() runs teardown before the function itself ... ok
test_old_api.test_scenario_is_alias_for_context_on_setup_and_teardown
@scenario aliases @that_with_context for setup and teardown ... ok
test_old_api.test_actions_returns_context
the actions always returns the context ... ok
test_old_api.test_actions_providing_variables_in_the_context
the actions should be able to declare the variables they provide ... ok
test_old_api.test_fails_when_action_doesnt_fulfill_the_agreement_of_provides
it fails when an action doesn't fulfill its agreements ... ok
test_old_api.test_depends_on_failing_due_nothing_found
it fails when an action depends on some attribute that is not provided by any other previous action ... ok
test_old_api.test_depends_on_failing_due_not_calling_a_previous_action
it fails when an action depends on some attribute that is being provided by other actions ... ok
test_old_api.test_that_contains_dictionary_keys
that(dict(name='foobar')).contains('name') ... ok
test_old_api.test_that_contains_list
that(['foobar', '123']).contains('foobar') ... ok
test_old_api.test_that_contains_set
that(set(['foobar', '123']).contains('foobar') ... ok
test_old_api.test_that_contains_tuple
that(('foobar', '123')).contains('foobar') ... ok
test_old_api.test_variables_bag_provides_meaningful_error_on_nonexisting_attribute
VariablesBag() provides a meaningful error when attr does not exist ... ok
test_old_api.test_actions_providing_dinamically_named_variables
the actions should be able to declare the variables they provide ... ok
test_old_api.test_deep_equals_dict_level1_success
that() deep_equals(dict) succeeding on level 1 ... ok
test_old_api.test_deep_equals_dict_level1_fail
that() deep_equals(dict) failing on level 1 ... ok
test_old_api.test_deep_equals_list_level1_success
that(list) deep_equals(list) succeeding on level 1 ... ok
test_old_api.test_deep_equals_list_level1_fail_by_value
that(list) deep_equals(list) failing on level 1 ... ok
test_old_api.test_deep_equals_list_level1_fail_by_length_x_gt_y
that(list) deep_equals(list) failing by length (len(X) > len(Y)) ... ok
test_old_api.test_deep_equals_list_level1_fail_by_length_y_gt_x
that(list) deep_equals(list) failing by length (len(Y) > len(X)) ... ok
test_old_api.test_deep_equals_dict_level1_fails_missing_key_on_y
that(X) deep_equals(Y) fails when Y is missing a key that X has ... ok
test_old_api.test_deep_equals_failing_basic_vs_complex
that(X) deep_equals(Y) fails with basic vc complex type ... ok
test_old_api.test_deep_equals_failing_complex_vs_basic
that(X) deep_equals(Y) fails with complex vc basic type ... ok
test_old_api.test_deep_equals_tuple_level1_success
that(tuple) deep_equals(tuple) succeeding on level 1 ... ok
test_old_api.test_deep_equals_tuple_level1_fail_by_value
that(tuple) deep_equals(tuple) failing on level 1 ... ok
test_old_api.test_deep_equals_tuple_level1_fail_by_length_x_gt_y
that(tuple) deep_equals(tuple) failing by length (len(X) > len(Y)) ... ok
test_old_api.test_deep_equals_tuple_level1_fail_by_length_y_gt_x
that(tuple) deep_equals(tuple) failing by length (len(Y) > len(X)) ... ok
test_old_api.test_deep_equals_fallsback_to_generic_comparator
that() deep_equals(dict) falling back to generic comparator ... ok
test_old_api.test_deep_equals_fallsback_to_generic_comparator_failing
that() deep_equals(dict) with generic comparator failing ... ok
test_old_api.test_deep_equals_fallsback_to_generic_comparator_failing_type
that() deep_equals(dict) with generic comparator failing ... ok
test_old_api.test_deep_equals_dict_level2_success
that() deep_equals(dict) succeeding on level 2 ... ok
test_old_api.test_deep_equals_dict_level2_list_success
that() deep_equals(dict) succeeding on level 2 ... ok
test_old_api.test_deep_equals_dict_level2_fail
that() deep_equals(dict) failing on level 2 ... ok
test_old_api.test_deep_equals_dict_level3_fail_values
that() deep_equals(dict) failing on level 3 ... ok
test_old_api.test_deep_equals_dict_level3_fails_missing_key
that() deep_equals(dict) failing on level 3 when missing a key ... ok
test_old_api.test_deep_equals_dict_level3_fails_extra_key
that() deep_equals(dict) failing on level 3 when has an extra key ... ok
test_old_api.test_deep_equals_dict_level3_fails_different_key
that() deep_equals(dict) failing on level 3 when has an extra key ... ok
test_old_api.test_deep_equals_list_level2_fail_by_length_x_gt_y
that(list) deep_equals(list) failing by length (len(X) > len(Y)) ... ok
test_old_api.test_deep_equals_list_level2_fail_by_length_y_gt_x
that(list) deep_equals(list) failing by length (len(Y) > len(X)) ... ok
test_old_api.test_function_decorated_with_wip_should_set_a_flag
@sure.work_in_progress should set an internal flag into `sure` ... ok
test_old_api.test_that_equals_fails
that() equals(string) when it's supposed to fail ... ok
test_old_api.test_raises_with_string
that(callable).raises('message') should compare the message ... ok
test_old_api.test_deep_equals_weird ... ok
test_safe_repr.test_basic_list
safe_repr should display a simple list ... ok
test_safe_repr.test_basic_dict
safe_repr should return a sorted repr ... ok
test_safe_repr.test_nested_dict
dicts nested inside values should also get sorted ... ok
test_safe_repr.test_unicode
dicts with unicode should work properly ... ok
----------------------------------------------------------------------
Ran 140 tests in 0.972s
OK
(0, 5000)
(7007, 5000)
(0, 5000)
+ LDFLAGS='-Wl,--as-needed -Wl,--no-copy-dt-needed-entries -Wl,-z,relro -Wl,-z,combreloc '
+ export LDFLAGS
+ CFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 '
+ export CFLAGS
+ CXXFLAGS=' -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64 -mtune=generic -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 '
+ export CXXFLAGS
+ CC=x86_64-pld-linux-gcc
+ export CC
+ CXX=x86_64-pld-linux-g++
+ export CXX
+ /usr/bin/python3 setup.py build '--build-base=build-3' test
running build
running build_py
creating build-3
creating build-3/lib
creating build-3/lib/sure
copying sure/__init__.py -> build-3/lib/sure
copying sure/cli.py -> build-3/lib/sure
copying sure/compat.py -> build-3/lib/sure
copying sure/core.py -> build-3/lib/sure
copying sure/deprecated.py -> build-3/lib/sure
copying sure/magic.py -> build-3/lib/sure
copying sure/old.py -> build-3/lib/sure
copying sure/registry.py -> build-3/lib/sure
copying sure/stubs.py -> build-3/lib/sure
copying sure/terminal.py -> build-3/lib/sure
copying sure/version.py -> build-3/lib/sure
running egg_info
writing sure.egg-info/PKG-INFO
writing dependency_links to sure.egg-info/dependency_links.txt
writing entry points to sure.egg-info/entry_points.txt
writing requirements to sure.egg-info/requires.txt
writing top-level names to sure.egg-info/top_level.txt
reading manifest file 'sure.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
writing manifest file 'sure.egg-info/SOURCES.txt'
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 build_ext
/usr/share/python3.10/site-packages/nose/config.py:264: RuntimeWarning: Option 'rednose' in config file 'setup.cfg' ignored: excluded by runtime environment
warn(msg, RuntimeWarning)
/usr/share/python3.10/site-packages/nose/config.py:264: RuntimeWarning: Option 'with-coverage' in config file 'setup.cfg' ignored: excluded by runtime environment
warn(msg, RuntimeWarning)
/usr/share/python3.10/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-inclusive' in config file 'setup.cfg' ignored: excluded by runtime environment
warn(msg, RuntimeWarning)
/usr/share/python3.10/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-package' in config file 'setup.cfg' ignored: excluded by runtime environment
warn(msg, RuntimeWarning)
/usr/share/python3.10/site-packages/nose/config.py:264: RuntimeWarning: Option 'cover-branches' in config file 'setup.cfg' ignored: excluded by runtime environment
warn(msg, RuntimeWarning)
nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
issues.test_issue_104.test_issue_104 ... ok
issues.test_issue_134.test_issue_132
Correctly handle {} characters in matcher string ... ok
issues.test_issue_136.test_issue_136
Test for unicode error when comparing bytes ... ok
issues.test_issue_139.test_issue_139
Test for GitHub Issue #139 ... ok
issues.test_issue_148.test_should_compare_dict_with_non_orderable_key_types ... ok
issues.test_issue_148.test_should_compare_dict_with_enum_keys ... ok
issues.test_issue_19.test_issue_19
Allow monkey-patching of methods already implemented by sure. ... ok
issues.test_issue_48.test_issue_48 ... ok
/tmp/B.3h606c5b/BUILD/sure-2.0.0/tests/test_assertion_builder.py:550: DeprecationWarning: invalid escape sequence '\w'
("expect('some string').to.match(r'\w{4} \w{6}') matches regex")
/tmp/B.3h606c5b/BUILD/sure-2.0.0/tests/test_assertion_builder.py:563: DeprecationWarning: invalid escape sequence '\d'
"'some string' doesn't match the regular expression /\d{2} \d{4}/")
test_assertion_builder.test_assertion_builder_synonyms
this, it, these and those are all synonyms ... ok
test_assertion_builder.test_4_equal_2p2
this(4).should.equal(2 + 2) ... ok
test_assertion_builder.test_2_within_0a2
this(1).should.be.within(0, 2) ... ok
test_assertion_builder.test_true_be_ok
this(True).should.be.ok ... ok
test_assertion_builder.test_false_be_falsy
this(False).should.be.false ... ok
test_assertion_builder.test_none
this(None).should.be.none ... ok
test_assertion_builder.test_should_be_a
this(None).should.be.none ... ok
test_assertion_builder.test_should_be_callable
this(function).should.be.callable ... ok
test_assertion_builder.test_iterable_should_be_empty
this(iterable).should.be.empty ... ok
test_assertion_builder.test_iterable_should_have_length_of
this(iterable).should.have.length_of(N) ... ok
test_assertion_builder.test_greater_than
this(X).should.be.greater_than(Y) ... ok
test_assertion_builder.test_greater_than_or_equal_to
this(X).should.be.greater_than_or_equal_to(Y) ... ok
test_assertion_builder.test_lower_than
this(X).should.be.lower_than(Y) ... ok
test_assertion_builder.test_lower_than_or_equal_to
this(X).should.be.lower_than_or_equal_to(Y) ... ok
test_assertion_builder.test_be
this(X).should.be(X) when X is a reference to the same object ... ok
test_assertion_builder.test_have_property
this(instance).should.have.property(property_name) ... ok
test_assertion_builder.test_have_property_with_value
this(instance).should.have.property(property_name).being or .with_value should allow chain up ... ok
test_assertion_builder.test_have_key
this(dictionary).should.have.key(key_name) ... ok
test_assertion_builder.test_have_key_with_value
this(dictionary).should.have.key(key_name).being or .with_value should allow chain up ... ok
test_assertion_builder.test_look_like
this(' aa ... ok
test_assertion_builder.test_equal_with_repr_of_complex_types_and_unicode
test usage of repr() inside expect(complex1).to.equal(complex2) ... ok
test_assertion_builder.test_equal_with_repr_of_complex_types_and_repr
test usage of repr() inside expect(complex1).to.equal(complex2) ... ok
test_assertion_builder.test_match_regex
expect('some string').to.match(r'\w{4} \w{6}') matches regex ... ok
test_assertion_builder.test_match_contain
expect('some string').to.contain('tri') ... ok
test_assertion_builder.test_catching_exceptions ... ok
test_assertion_builder.test_catching_exceptions_with_params ... ok
test_assertion_builder.test_success_with_params ... ok
test_assertion_builder.test_success_with_params_exception ... ok
test_assertion_builder.test_throw_matching_regex ... ok
test_assertion_builder.test_should_not_be_different
'something'.should_not.be.different('SOMETHING'.lower()) ... ok
test_assertion_builder.test_equals_handles_mock_call_list
.equal() Should convert mock._CallList instances to lists ... ok
test_assertion_builder.test_equals_handles_float_with_epsilon
.equal(what, epsilon=XXX) should check for equality with an epsilon for float values ... ok
test_assertion_builder.test_equals_dictionaries_with_tuple_keys
.equal() with dict containing tuples as keys should work ... ok
test_assertion_builder.test_ordereddict_comparison
.equal(OrderedDict) should check if two ordered dicts are the same ... ok
test_assertion_builder.test_equals_anything ... ok
test_assertion_builder.test_equals_crosstype ... ok
test_custom_assertions.test_custom_assertion
test extending sure with a custom assertion. ... ok
test_custom_assertions.test_custom_chain_method
test extending sure with a custom chain method. ... ok
test_custom_assertions.test_custom_chain_property
test extending sure with a custom chain property. ... ok
test_ensure_ctxmgr.test_ensure_simple_assertion
Test ensure simple assertion ... ok
test_ensure_ctxmgr.test_ensure_just_assertion_error
Test that ensure only captures AssertionErrors ... ok
test_old_api.test_setup_with_context
sure.with_context() runs setup before the function itself ... /tmp/B.3h606c5b/BUILD/sure-2.0.0/tests/test_old_api.py:43: DeprecationWarning: Please use assertEqual instead.
assert_equals(
ok
test_old_api.test_context_is_not_optional
sure.that_with_context() when no context is given it fails ... FAIL
======================================================================
FAIL: test_old_api.test_context_is_not_optional
sure.that_with_context() when no context is given it fails
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/B.3h606c5b/BUILD/sure-2.0.0/sure/old.py", line 126, in raises
self._src(*self._callable_args, **self._callable_kw)
File "/tmp/B.3h606c5b/BUILD/sure-2.0.0/sure/__init__.py", line 161, in wrap
res = test.apply(context)
File "/tmp/B.3h606c5b/BUILD/sure-2.0.0/sure/__init__.py", line 123, in apply
return self.callback(*args, **self.kwargs)
TypeError: test_context_is_not_optional.<locals>.it_crashes() takes 0 positional arguments but 1 was given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/python3.10/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/tmp/B.3h606c5b/BUILD/sure-2.0.0/tests/test_old_api.py", line 59, in test_context_is_not_optional
assert that(it_crashes).raises(
File "/tmp/B.3h606c5b/BUILD/sure-2.0.0/sure/old.py", line 145, in raises
raise AssertionError('''
AssertionError: <function test_context_is_not_optional.<locals>.it_crashes at 0x7f588208cee0> raised TypeError, but the exception message does not
match.
EXPECTED:
the function it_crashes defined at test_old_api.py line 56, is being decorated by either @that_with_context or @scenario, so it should take at least 1 parameter, which is the test context
GOT:
test_context_is_not_optional.<locals>.it_crashes() takes 0 positional arguments but 1 was given
----------------------------------------------------------------------
Ran 51 tests in 0.182s
FAILED (failures=1)
Test failed: <unittest.runner.TextTestResult run=51 errors=0 failures=1>
error: Test failed: <unittest.runner.TextTestResult run=51 errors=0 failures=1>
error: Bad exit status from /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.hiO76N (%build)
RPM build errors:
Could not canonicalize hostname: ymir
Bad exit status from /tmp/B.3h606c5b/BUILD/tmp/rpm-tmp.hiO76N (%build)
ended at: Thu Apr 28 18:35:09 2022, done in 0:00:06.682564
error: No files produced.
+ chmod -R u+rwX /tmp/B.3h606c5b/BUILD
+ rm -rf /tmp/B.3h606c5b/tmp /tmp/B.3h606c5b/BUILD
+ rm -rf /tmp/B.3h606c5b
Begin-PLD-Builder-Info
Build-Time: user:6.64s sys:1.26s real:9.08s (faults io:3 non-io:202220)
End-PLD-Builder-Info
|
|