Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-sure.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-3550dfdeeda2f235883a6fecae726c53282321e2/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-sure.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-sure-1.1.7-2.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-sure.spec'], nspawn_args=[]shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/epel-1-armhfp-3550dfdeeda2f235883a6fecae726c53282321e2/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-sure.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xT5cbC + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sure-1.1.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/sure-1.1.7.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd sure-1.1.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rvf '*.egg-info' + find sure -type f '!' -perm /0111 -exec gawk '/^#!/ { print FILENAME }; { nextfile }' '{}' + + xargs -r -t sed -r -i '1{/^#!/d}' sed -r -i 1{/^#!/d} sure/core.py sure/magic.py sure/__init__.py sure/terminal.py sure/deprecated.py sure/old.py sure/registry.py + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YOyYX4 + umask 022 + cd /builddir/build/BUILD + cd sure-1.1.7 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=neon -mfloat-abi=hard' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/sure copying sure/core.py -> build/lib/sure copying sure/magic.py -> build/lib/sure copying sure/six.py -> build/lib/sure copying sure/__init__.py -> build/lib/sure copying sure/terminal.py -> build/lib/sure copying sure/deprecated.py -> build/lib/sure copying sure/ordereddict.py -> build/lib/sure copying sure/old.py -> build/lib/sure copying sure/registry.py -> build/lib/sure + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.0cmt4N + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch ++ dirname /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch + cd sure-1.1.7 + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=neon -mfloat-abi=hard' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr creating /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/core.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/magic.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/six.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/__init__.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/terminal.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/deprecated.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/ordereddict.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/old.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure copying build/lib/sure/registry.py -> /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/core.py to core.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/magic.py to magic.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/six.py to six.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/terminal.py to terminal.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/deprecated.py to deprecated.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/ordereddict.py to ordereddict.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/old.py to old.pyc byte-compiling /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure/registry.py to registry.pyc writing byte-compilation script '/tmp/tmp6QfcKL.py' /usr/bin/python2 -O /tmp/tmp6QfcKL.py removing /tmp/tmp6QfcKL.py running install_egg_info running egg_info creating sure.egg-info 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 manifest file 'sure.egg-info/SOURCES.txt' reading manifest file 'sure.egg-info/SOURCES.txt' writing manifest file 'sure.egg-info/SOURCES.txt' Copying sure.egg-info to /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages/sure-1.1.7-py2.7.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/sure-1.1.7 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.VaA3fj + umask 022 + cd /builddir/build/BUILD + cd sure-1.1.7 + PYTHONPATH=/builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/lib/python2.7/site-packages + /usr/bin/python2 -m nose -s --verbosity=2 tests this, it, these and those are all synonyms ... ok this(4).should.equal(2 + 2) ... ok this(1).should.be.within(0, 2) ... ok this(True).should.be.ok ... ok this(False).should.be.false ... ok this(None).should.be.none ... ok this(None).should.be.none ... ok this(function).should.be.callable ... ok this(iterable).should.be.empty ... ok this(iterable).should.have.length_of(N) ... ok this(X).should.be.greater_than(Y) ... ok this(X).should.be.greater_than_or_equal_to(Y) ... ok this(X).should.be.lower_than(Y) ... ok this(X).should.be.lower_than_or_equal_to(Y) ... ok this(instance).should.have.property(property_name) ... ok this(instance).should.have.property(property_name).being or .with_value should allow chain up ... ok this(dictionary).should.have.key(key_name) ... ok this(dictionary).should.have.key(key_name).being or .with_value should allow chain up ... ok this(' aa ... ok test usage of repr() inside expect(complex1).to.equal(complex2) ... ok test usage of repr() inside expect(complex1).to.equal(complex2) ... ok expect('some string').to.match(r'\w{4} \w{6}') matches regex ... ok expect('some string').to.contain('tri') ... ok anything that inherits from object should be patched ... ok /builddir/build/BUILD/sure-1.1.7/tests/test_old_api.py:401: SyntaxWarning: name 'called' is assigned to before global declaration global called sure.with_context() runs setup before the function itself ... ok sure.that_with_context() when no context is given it fails ... ok sure.that_with_context() in a failing test ... ok sure.with_context() runs teardown before the function itself ... ok that() is_a(object) ... ok that() equals(string) ... ok that() differs(object) ... ok that() has(object) ... ok that().at(object).equals(object) ... ok that() len_is(number) ... ok that() len_greater_than(number) ... ok that() len_greater_than(number) raise AssertionError ... ok that() len_greater_than_or_equals(number) ... ok that() len_greater_than_or_equals(number) raise AssertionError ... ok that() len_lower_than(number) ... ok that() len_lower_than(number) raise AssertionError ... ok that() len_lower_than_or_equals(number) ... ok that() len_lower_than_or_equals(number) raise AssertionError ... ok that(iterable).the_attribute('name').equals('value') ... ok that(iterable, within_range=(1, 2)).the_attribute('name').equals('value') ... ok that(iterable).every_one_is('value') ... ok that(iterable).in_each('').equals('value') ... ok that(callable, with_args=[arg1], and_kwargs={'arg2': 'value'}).raises(SomeException) ... ok that('String\n with BREAKLINE').looks_like('string with breakline') ... ok that(callable, with_args=['foo']).raises(FooError) ... ok that(callable).doesnt_raise(FooError) and does_not_raise ... ok that('foobar').contains('foo') ... ok that('foobar').does_not_contain('123'), .doesnt_contain ... ok that('foobar').contains(None) ... ok that(None).contains('bungalow') ... ok that(some_iterable).is_empty and that(something).are_empty ... ok that(something_not_iterable).is_empty and that(something_not_iterable).are_empty raises ... ok that(something_iterable).matches(another_iterable) ... ok within(five=miliseconds) will pass ... ok within(five=miliseconds) will fail ... ok test_old_api.test_word_to_number ... ok test_old_api.test_word_to_number_fail ... ok testing microseconds convertion ... ok testing miliseconds convertion ... ok testing seconds convertion ... ok testing minutes convertion ... ok within(five=miliseconds) gives utc parameter ... ok that.is_a_matcher should absorb callables to be used as matcher ... ok sure.with_context() accepts a list of callbacks for setup ... ok sure.with_context() runs teardown before the function itself ... ok @scenario aliases @that_with_context for setup and teardown ... ok the actions always returns the context ... ok the actions should be able to declare the variables they provide ... ok it fails when an action doesn't fulfill its agreements ... ok it fails when an action depends on some attribute that is not provided by any other previous action ... ok it fails when an action depends on some attribute that is being provided by other actions ... ok that(dict(name='foobar')).contains('name') ... ok that(['foobar', '123']).contains('foobar') ... ok that(set(['foobar', '123']).contains('foobar') ... ok that(('foobar', '123')).contains('foobar') ... ok VariablesBag() provides a meaningful error when attr does not exist ... ok the actions should be able to declare the variables they provide ... ok that() deep_equals(dict) succeeding on level 1 ... ok that() deep_equals(dict) failing on level 1 ... ok that(list) deep_equals(list) succeeding on level 1 ... ok that(list) deep_equals(list) failing on level 1 ... ok that(list) deep_equals(list) failing by length (len(X) > len(Y)) ... ok that(list) deep_equals(list) failing by length (len(Y) > len(X)) ... ok that(X) deep_equals(Y) fails when Y is missing a key that X has ... ok that(X) deep_equals(Y) fails with basic vc complex type ... ok that(X) deep_equals(Y) fails with complex vc basic type ... ok that(tuple) deep_equals(tuple) succeeding on level 1 ... ok that(tuple) deep_equals(tuple) failing on level 1 ... ok that(tuple) deep_equals(tuple) failing by length (len(X) > len(Y)) ... ok that(tuple) deep_equals(tuple) failing by length (len(Y) > len(X)) ... ok that() deep_equals(dict) falling back to generic comparator ... ok that() deep_equals(dict) with generic comparator failing ... ok that() deep_equals(dict) with generic comparator failing ... ok that() deep_equals(dict) succeeding on level 2 ... ok that() deep_equals(dict) succeeding on level 2 ... ok that() deep_equals(dict) failing on level 2 ... ok that() deep_equals(dict) failing on level 3 ... ok that() deep_equals(dict) failing on level 3 when missing a key ... ok that() deep_equals(dict) failing on level 3 when has an extra key ... ok that() deep_equals(dict) failing on level 3 when has an extra key ... ok that(list) deep_equals(list) failing by length (len(X) > len(Y)) ... ok that(list) deep_equals(list) failing by length (len(Y) > len(X)) ... ok @sure.work_in_progress should set an internal flag into `sure` ... ok that() equals(string) when it's supposed to fail ... ok that(callable).raises('message') should compare the message ... ok test_old_api.test_deep_equals_weird ... ok safe_repr should display a simple list ... ok safe_repr should return a sorted repr ... ok dicts nested inside values should also get sorted ... ok dicts with unicode should work properly ... ok ---------------------------------------------------------------------- Ran 114 tests in 0.855s OK(0, 5000) (7007, 5000) (0, 5000) + exit 0 Processing files: python2-sure-1.1.7-2.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.rfLB3W + umask 022 + cd /builddir/build/BUILD + cd sure-1.1.7 + DOCDIR=/builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/doc/python2-sure-1.1.7 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/doc/python2-sure-1.1.7 + cp -pr OLD_API.md /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/doc/python2-sure-1.1.7 + cp -pr README.md /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/doc/python2-sure-1.1.7 + cp -pr TODO.md /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/doc/python2-sure-1.1.7 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.vJIgBy + umask 022 + cd /builddir/build/BUILD + cd sure-1.1.7 + LICENSEDIR=/builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/licenses/python2-sure-1.1.7 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/licenses/python2-sure-1.1.7 + cp -pr COPYING /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch/usr/share/licenses/python2-sure-1.1.7 + exit 0 Provides: python-sure = 1.1.7-2.el7 python2-sure = 1.1.7-2.el7 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) = 2.7 Obsoletes: python-sure < 1.1.7-2.el7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch Wrote: /builddir/build/RPMS/python2-sure-1.1.7-2.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.zWW7M9 + umask 022 + cd /builddir/build/BUILD + cd sure-1.1.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-sure-1.1.7-2.el7.noarch + exit 0 Child return code was: 0