Mock Version: 1.3.3 Mock Version: 1.3.3 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-bitmath.spec'], printOutput=Falsetimeout=172800user='mockbuild'uid=1000chrootPath='/var/lib/mock/f26-build-7646272-694519/root'shell=Falsegid=425logger=env={'TERM': 'vt100', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-bitmath.spec'] with env {'TERM': 'vt100', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock'} and shell False sh: line 0: fg: no job control Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-bitmath-1.3.1-1.fc26.3.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-bitmath.spec'], printOutput=Falsetimeout=172800user='mockbuild'uid=1000private_network=TruechrootPath='/var/lib/mock/f26-build-7646272-694519/root'shell=Falsegid=425logger=env={'TERM': 'vt100', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock'}) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-bitmath.spec'] with env {'TERM': 'vt100', 'HOME': '/builddir', 'LANG': 'en_US.UTF-8', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'SHELL': '/bin/bash', 'PS1': ' \\s-\\v\\$ ', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zcEN8D + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bitmath-1.3.1.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/1.3.1.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bitmath-1.3.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wX5506 + umask 022 + cd /builddir/build/BUILD + cd bitmath-1.3.1.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' running build running build_py creating build creating build/lib creating build/lib/bitmath copying bitmath/__init__.py -> build/lib/bitmath copying bitmath/integrations.py -> build/lib/bitmath + sleep 1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py + sleep 1 + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.lXmCqG + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch ++ dirname /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch + cd bitmath-1.3.1.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages/bitmath copying build/lib/bitmath/__init__.py -> /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages/bitmath copying build/lib/bitmath/integrations.py -> /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages/bitmath byte-compiling /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages/bitmath/__init__.py to __init__.pyc byte-compiling /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages/bitmath/integrations.py to integrations.pyc writing byte-compilation script '/tmp/tmpaz9aSI.py' /usr/bin/python2 -O /tmp/tmpaz9aSI.py removing /tmp/tmpaz9aSI.py running install_egg_info running egg_info creating bitmath.egg-info writing bitmath.egg-info/PKG-INFO writing top-level names to bitmath.egg-info/top_level.txt writing dependency_links to bitmath.egg-info/dependency_links.txt writing entry points to bitmath.egg-info/entry_points.txt writing manifest file 'bitmath.egg-info/SOURCES.txt' reading manifest file 'bitmath.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'bitmath.egg-info/SOURCES.txt' Copying bitmath.egg-info to /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7/site-packages/bitmath-1.3.1.1-py2.7.egg-info running install_scripts Installing bitmath script to /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/bin + mv /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/bin/bitmath /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/bin/bitmath-2.7 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6 creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages creating /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages/bitmath copying build/lib/bitmath/__init__.py -> /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages/bitmath copying build/lib/bitmath/integrations.py -> /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages/bitmath byte-compiling /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages/bitmath/__init__.py to __init__.cpython-36.pyc byte-compiling /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages/bitmath/integrations.py to integrations.cpython-36.pyc writing byte-compilation script '/tmp/tmptxo_m767.py' /usr/bin/python3 /tmp/tmptxo_m767.py removing /tmp/tmptxo_m767.py running install_egg_info running egg_info writing bitmath.egg-info/PKG-INFO writing dependency_links to bitmath.egg-info/dependency_links.txt writing entry points to bitmath.egg-info/entry_points.txt writing top-level names to bitmath.egg-info/top_level.txt reading manifest file 'bitmath.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'bitmath.egg-info/SOURCES.txt' Copying bitmath.egg-info to /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6/site-packages/bitmath-1.3.1.1-py3.6.egg-info running install_scripts Installing bitmath script to /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/bin + pushd /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/bin/ ~/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/bin ~/build/BUILD/bitmath-1.3.1.1 + ln -s bitmath bitmath-3.6 + popd ~/build/BUILD/bitmath-1.3.1.1 + mkdir -p /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/man/man1/ + cp -v bitmath.1 /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/man/man1/ 'bitmath.1' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/man/man1/bitmath.1' + mkdir -p /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs + cp -v -r docsite/source/NEWS.rst docsite/source/appendices docsite/source/appendices.rst docsite/source/classes.rst docsite/source/commandline.rst docsite/source/conf.py docsite/source/conf.py.in docsite/source/contact.rst docsite/source/contributing.rst docsite/source/copyright.rst docsite/source/example_block_devices.rst docsite/source/index.rst docsite/source/index.rst.in docsite/source/instances.rst docsite/source/module.rst docsite/source/query_device_capacity_warning.rst docsite/source/real_life_examples.rst docsite/source/simple_examples.rst /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/ 'docsite/source/NEWS.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/NEWS.rst' 'docsite/source/appendices' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/appendices' 'docsite/source/appendices/mixed_math.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/appendices/mixed_math.rst' 'docsite/source/appendices/on_units.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/appendices/on_units.rst' 'docsite/source/appendices/related_projects.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/appendices/related_projects.rst' 'docsite/source/appendices/who_uses.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/appendices/who_uses.rst' 'docsite/source/appendices.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/appendices.rst' 'docsite/source/classes.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/classes.rst' 'docsite/source/commandline.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/commandline.rst' 'docsite/source/conf.py' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/conf.py' 'docsite/source/conf.py.in' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/conf.py.in' 'docsite/source/contact.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/contact.rst' 'docsite/source/contributing.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/contributing.rst' 'docsite/source/copyright.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/copyright.rst' 'docsite/source/example_block_devices.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/example_block_devices.rst' 'docsite/source/index.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/index.rst' 'docsite/source/index.rst.in' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/index.rst.in' 'docsite/source/instances.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/instances.rst' 'docsite/source/module.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/module.rst' 'docsite/source/query_device_capacity_warning.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/query_device_capacity_warning.rst' 'docsite/source/real_life_examples.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/real_life_examples.rst' 'docsite/source/simple_examples.rst' -> '/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/simple_examples.rst' + rm -f /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch//usr/share/doc/python-bitmath/docs/NEWS.rst + /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/bitmath-1.3.1.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-compress + /usr/lib/rpm/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-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python3.6 using /usr/bin/python3.6 Bytecompiling .py files below /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.TT9toj + umask 022 + cd /builddir/build/BUILD + cd bitmath-1.3.1.1 + nosetests -v Argparse: BitmathType - Unquoted values separated from their units are detected ... usage: nosetests [-h] [--one-arg ONE_ARG] nosetests: error: argument --one-arg: '1337' can not be parsed into a valid bitmath object ok Argparse: BitmathType - Notices when horrendously incorrect args are provided ... usage: nosetests [-h] [--one-arg ONE_ARG] nosetests: error: argument --one-arg: '2098329324kdsjflksdjf' can not be parsed into a valid bitmath object ok Argparse: BitmathType - Works when given a correct parameter ... ok Argparse: BitmathType - 'Quoted values' can be separated from the units by whitespace ... ok Argparse: BitmathType - Works when given two correct parameters ... ok abs(NegativeObject) is positive ... ok abs(PositiveObject) is positive ... ok Adding two different bitmath types is equal to another type of the same size ... ok Adding the same bitmath types is equal to result as the same type ... ok Adding a bit based type with a byte based type ... ok bitmath + number = number ... ok bitmath / bitmath = number ... ok bitmath / number = bitmath ... ok bitmath * bitmath = bitmath ... ok bitmath * number = bitmath ... ok bitmath - bitmath = bitmath ... ok bitmath - number = number ... ok Two different bitmath types are equal ... ok Negating a positive makes a negative ... ok Plus'ing a negative makes a positive ... ok number + bitmath = number ... ok number / bitmath = number ... ok number * bitmath = bitmath ... ok number - bitmath = number ... ok Two same bitmath types are equal ... ok Subtracting a bit based type with a byte based type ... ok A bitmath type is equal to the value it's instanted with ... ok best_prefix_base: large negative values retain their prefix unit ... ok best_prefix_base: negative values less than a byte stay as bits ... ok best_prefix_base: can handle bitmath type inputs ... ok best_prefix_base: 2 Bytes (as a Bit()) round up into a Byte() ... ok best_prefix_base: 1 Byte (as a Byte()) best prefix is still a Byte() ... ok best_prefix_base: 4 Bits (as a Byte()) round down into a Bit() ... ok NIST: Best prefix uses the current system if no preference set ... ok NIST: instance.best_prefix returns the same type if nothing changes ... ok NIST: Best prefix honors a NIST preference when starting with an NIST unit ... ok NIST: Best prefix honors a NIST preference when starting with an SI unit ... ok bitmath.best_prefix return a Kibibyte for 1024 ... ok bitmath.best_prefix return an exbibyte for a huge number of bytes ... ok NIST: 1 Bit (as a EiB()) rounds down into a Bit() ... ok NIST: 2048 EiB (as a KiB()) rounds up into an EiB() ... ok NIST: A very small Pibibyte rounds down into a KibiByte ... ok NIST: A very large Kibibyte rounds up into a Pibibyte ... ok NIST: 1 MiB (as a GiB()) rounds down into a MiB() ... ok NIST: 1 GiB (as a MiB()) rounds up into a GiB() ... ok SI: Best prefix uses the current system if no preference set ... ok SI: best_prefix returns the same type when nothing changes ... ok SI: Best prefix honors a SI preference when starting with a NIST unit ... ok SI: Best prefix honors a SI preference when starting with an SI unit ... ok bitmath.best_prefix return a Kilobyte for 1024 ... ok bitmath.best_prefix return a yottabyte for a huge number of bytes ... ok SI: 1 Bit (as a EB()) rounds down into a Bit() ... ok SI: 2048 EB (as a kB()) rounds up into an EB() ... ok SI: A very small Petabyte rounds down into a Kilobyte ... ok SI: A very large Kilobyte rounds up into a Petabyte ... ok SI: 1 MB (as a GB()) rounds down into a MB() ... ok SI: 1 GB (as a MB()) rounds up into a GB() ... ok Bits and'd (&) are correct ... ok Bits left shifted (<<) are increased ... ok Bits or'd (|) are correct ... ok Bits right shifted (>>) are decreased ... ok Bits xor'd (^) are correct ... ok CLI script returns correct if given FROM and TO units ... ok CLI script returns correct if given FROM units ... ok CLI script returns nothing if no input is given ... ok CLI script works if no to/from units are provided ... ok CLI script returns correct TO units ... ok TiB(1/3.0) prints out units in plural form, setting the fmt str in the mgr ... ok TiB(1/3.0) prints out units in singular form, setting the fmt str in the mgr ... ok Byte(3.0) prints out units in plural form ... ok Byte(3.0) prints out units in plural form, setting the fmt str in the mgr ... ok bitmath.format context mgr sets and restores formatting ... ok NIST: getsize reports the correct type and size for byte sized files ... ok SI: getsize reports the correct type and size for byte sized files ... ok NIST: getsize reports the correct type and size for kibibyte sized files ... ok SI: getsize reports the correct type and size for kibibyte sized files ... ok listdir: filtering with nosymlinks returns 0 matches for a filter ... ok listdir: no symbolic links in tree measures right with a filter ... ok listdir: no symbolic links in tree measures right ... ok listdir: symbolic links in tree are followed ... ok listdir: symlinks followed, absolute paths are returned ... ok listdir: symbolic links in tree not followed ... ok truediv: bitmath / bitmath = number ... ok truediv: bitmath / number = bitmath ... ok truediv: number / bitmath = number ... ok truediv: number // bitmath = number ... ok __init__: can identify (in)valid input parameters, raise ValueError if detected ... ok __init__: accepts valid inputs ... ok __init__: respects argument mutual exclusivity ... ok Instantiation fails if bytes and bits are both provided ... ok Instantiation fails if value and bits are both provided ... ok Instantiation fails if value and bytes are both provided ... ok Instantiation fails if value and bytes and bits are all provided ... ok Instantiation fails if we try to instantiate bitmath.Bitmath ... ok Instantiation works with the 'bits' kw arg ... ok Instantiation works with the 'bytes' kw arg ... ok Instantiation works with no arguments ... ok Instantiation works with only 'value' provided ... ok parse_string works on byte strings ... ok parse_string works on exbioctet strings ... ok parse_string works on exaoctet strings ... ok parse_string works on gigabit strings ... ok parse_string works on mebibyte strings ... ok parse_string works on mebioctet strings ... ok parse_string works on megaoctet strings ... ok parse_string works on bit strings ... ok parse_string can identify invalid float values ... ok parse_string can identify invalid prefix units ... ok parse_string can identify other prefix units ... ok parse_string can identify strings without units at all ... ok parse_string can identify a non-string input ... ok parse_string can handle a unicode string ... ok parse_string_unsafe can parse the examples reported in issue #60 ... ok parse_string_unsafe can convert to NIST on request ... ok parse_string_unsafe can parse all accepted NIST inputs ... ok parse_string_unsafe can parse abbreviated NIST units (Gi, Ki, ...) ... ok parse_string_unsafe can parse all accepted SI inputs ... ok parse_string_unsafe can identify invalid input types ... ok parse_string_unsafe can parse unitless number inputs ... ok parse_string_unsafe can parse the upper/lowercase SI 'thousand' (k) ... ok parse_string_unsafe explodes when given invalid units ... ok Widget renders 0 correctly when no seconds have elapsed ... ok Widget renders a rate after time has elapsed in MB/s ... ok Widget renders a rate after time has elapsed in MiB/s ... ok Widget renders a non-zero rate after time has elapsed in Bytes ... ok Widget renders a custom format string ... ok Read the 'bits' property of a bitmath type ... ok Read the 'bytes' property of a bitmath type ... ok Read the 'value' property of a bitmath type ... ok bitmath type's properties are read-only ... ok query device capacity aborts if a non-block-device is provided ... ok query device capacity works on a happy Linux host ... ok query device capacity works on a happy Mac OS X host ... ok query device capacity fails on a non-posix host ... ok KiB(1.0) looks right if changing fmt str in bitmath.KiB ... ok MiB(0.5) looks correct in a terminal ... ok MiB(0.5) looks correct as a string ... ok kB(1).system is SI ... ok kB(1).unit is kB ... ok KiB(1).base is 2 ... ok KiB(1).bin (binary alias) is binary ... ok KiB(1).binary is binary ... ok KiB(1).power (binary alias) is 10 ... ok KiB(1).system is NIST ... ok KiB(1).unit is KiB ... ok KiB(12345) as a MiB (12.0556640625) truncates to 5 digits ... ok Byte(1.0) prints out units in singular form ... ok MiB(102.4754) prints out with four digits of precision ... ok MiB(1/3.0) prints out with two digits of precision ... ok KiB(1) looks correct in a terminal ... ok KiB(1) looks correct as a string ... ok Two equal values are actually equal ... ok Unequal objects aren't equal ... ok Unequal objects aren't equal with numbers ... ok Two equal values are actually equal with numbers ... ok 1 GiB is greater than 1 Mib ... ok Greater or equal is more than or equal to one MiB ... ok Greater or equal is more than or equal to int(1) ... ok 1 GiB is greater than 0.5 ... ok One KiB is less than one MiB ... ok Smaller or equal is less than or equal to one MiB ... ok Smaller or equal is less than or equal to int(2) ... ok One KiB is less than int(2) ... ok Different types in a list can be sorted properly ... ok Same types in a list can be sorted properly ... ok Bitmath types can be sorted by 'bits' attribute ... ok Bitmath types can be sorted by 'bytes' attribute ... ok Same types can be sorted by 'value' attribute ... ok Convert an NIST unit into an SI unit ... ok Convert an SI unit into an NIST unit ... ok Converted down type has an equivalent value to the original ... ok Converted up type has an equivalent value to the original ... ok MiB object from_other object ... ok from_other raises if "other" isn't a bitmath instance ... ok Convert to Bit ... ok Convert to Byte ... ok Convert a bitmath GiB into a EB ... ok Convert a bitmath GiB into a Eb ... ok Convert a bitmath PiB into a EiB ... ok Convert a bitmath GiB into a Eib ... ok Convert a bitmath GiB into a GB ... ok Convert a bitmath GiB into a Gb ... ok Convert a bitmath TiB into a GiB ... ok Convert a bitmath GiB into a Gib ... ok Convert to KiB ... ok Convert to Kib ... ok Convert a bitmath GiB into a MB ... ok Convert a bitmath GiB into a Mb ... ok Convert a bitmath GiB into a MiB ... ok Convert a bitmath GiB into a Mib ... ok Convert a bitmath GiB into a PB ... ok Convert a bitmath GiB into a Pb ... ok Convert a bitmath TiB into a PiB ... ok Convert a bitmath GiB into a PiB ... ok Convert a bitmath GiB into a TB ... ok Convert a bitmath GiB into a Tb ... ok Convert a bitmath PiB into a TiB ... ok Convert a bitmath GiB into a Tib ... ok Convert a bitmath GiB into a YB ... ok Convert a bitmath GiB into a Yb ... ok Convert a bitmath GiB into a ZB ... ok Convert a bitmath GiB into a Zb ... ok Convert to kb ... ok Convert a bitmath Bit into a MiB ... ok bitmath type converted to the same unit is properly converted ... ok float(bitmath) returns a float ... ok int(bitmath) returns an int ... ok long(bitmath) returns a long ... ok capitalize_first doesn't change anything if the input is already correct ... ok capitalize_first upcases just the first letter in a word ... ok capitalize_first doesn't change anything if the input begins with a number ... ok ---------------------------------------------------------------------- Ran 211 tests in 0.181s OK + nosetests-3.6 -e test_FileTransferSpeed -e test_BitmathType_ -I '.*test_argparse_type.py' -I '.*test_progressbar.py' -v abs(NegativeObject) is positive ... ok abs(PositiveObject) is positive ... ok Adding two different bitmath types is equal to another type of the same size ... ok Adding the same bitmath types is equal to result as the same type ... ok Adding a bit based type with a byte based type ... ok bitmath + number = number ... ok bitmath / bitmath = number ... ok bitmath / number = bitmath ... ok bitmath * bitmath = bitmath ... ok bitmath * number = bitmath ... ok bitmath - bitmath = bitmath ... ok bitmath - number = number ... ok Two different bitmath types are equal ... ok Negating a positive makes a negative ... ok Plus'ing a negative makes a positive ... ok number + bitmath = number ... ok number / bitmath = number ... ok number * bitmath = bitmath ... ok number - bitmath = number ... ok Two same bitmath types are equal ... ok Subtracting a bit based type with a byte based type ... ok A bitmath type is equal to the value it's instanted with ... ok best_prefix_base: large negative values retain their prefix unit ... ok best_prefix_base: negative values less than a byte stay as bits ... ok best_prefix_base: can handle bitmath type inputs ... ok best_prefix_base: 2 Bytes (as a Bit()) round up into a Byte() ... ok best_prefix_base: 1 Byte (as a Byte()) best prefix is still a Byte() ... ok best_prefix_base: 4 Bits (as a Byte()) round down into a Bit() ... ok NIST: Best prefix uses the current system if no preference set ... ok NIST: instance.best_prefix returns the same type if nothing changes ... ok NIST: Best prefix honors a NIST preference when starting with an NIST unit ... ok NIST: Best prefix honors a NIST preference when starting with an SI unit ... ok bitmath.best_prefix return a Kibibyte for 1024 ... ok bitmath.best_prefix return an exbibyte for a huge number of bytes ... ok NIST: 1 Bit (as a EiB()) rounds down into a Bit() ... ok NIST: 2048 EiB (as a KiB()) rounds up into an EiB() ... ok NIST: A very small Pibibyte rounds down into a KibiByte ... ok NIST: A very large Kibibyte rounds up into a Pibibyte ... ok NIST: 1 MiB (as a GiB()) rounds down into a MiB() ... ok NIST: 1 GiB (as a MiB()) rounds up into a GiB() ... ok SI: Best prefix uses the current system if no preference set ... ok SI: best_prefix returns the same type when nothing changes ... ok SI: Best prefix honors a SI preference when starting with a NIST unit ... ok SI: Best prefix honors a SI preference when starting with an SI unit ... ok bitmath.best_prefix return a Kilobyte for 1024 ... ok bitmath.best_prefix return a yottabyte for a huge number of bytes ... ok SI: 1 Bit (as a EB()) rounds down into a Bit() ... ok SI: 2048 EB (as a kB()) rounds up into an EB() ... ok SI: A very small Petabyte rounds down into a Kilobyte ... ok SI: A very large Kilobyte rounds up into a Petabyte ... ok SI: 1 MB (as a GB()) rounds down into a MB() ... ok SI: 1 GB (as a MB()) rounds up into a GB() ... ok Bits and'd (&) are correct ... ok Bits left shifted (<<) are increased ... ok Bits or'd (|) are correct ... ok Bits right shifted (>>) are decreased ... ok Bits xor'd (^) are correct ... ok CLI script returns correct if given FROM and TO units ... ok CLI script returns correct if given FROM units ... ok CLI script returns nothing if no input is given ... ok CLI script works if no to/from units are provided ... ok CLI script returns correct TO units ... ok TiB(1/3.0) prints out units in plural form, setting the fmt str in the mgr ... ok TiB(1/3.0) prints out units in singular form, setting the fmt str in the mgr ... ok Byte(3.0) prints out units in plural form ... ok Byte(3.0) prints out units in plural form, setting the fmt str in the mgr ... ok bitmath.format context mgr sets and restores formatting ... ok NIST: getsize reports the correct type and size for byte sized files ... ok SI: getsize reports the correct type and size for byte sized files ... ok NIST: getsize reports the correct type and size for kibibyte sized files ... ok SI: getsize reports the correct type and size for kibibyte sized files ... ok listdir: filtering with nosymlinks returns 0 matches for a filter ... ok listdir: no symbolic links in tree measures right with a filter ... ok listdir: no symbolic links in tree measures right ... ok listdir: symbolic links in tree are followed ... ok listdir: symlinks followed, absolute paths are returned ... ok listdir: symbolic links in tree not followed ... ok truediv: bitmath / bitmath = number ... ok truediv: bitmath / number = bitmath ... ok truediv: number / bitmath = number ... ok truediv: number // bitmath = number ... ok __init__: can identify (in)valid input parameters, raise ValueError if detected ... ok __init__: accepts valid inputs ... ok __init__: respects argument mutual exclusivity ... ok Instantiation fails if bytes and bits are both provided ... ok Instantiation fails if value and bits are both provided ... ok Instantiation fails if value and bytes are both provided ... ok Instantiation fails if value and bytes and bits are all provided ... ok Instantiation fails if we try to instantiate bitmath.Bitmath ... ok Instantiation works with the 'bits' kw arg ... ok Instantiation works with the 'bytes' kw arg ... ok Instantiation works with no arguments ... ok Instantiation works with only 'value' provided ... ok parse_string works on byte strings ... ok parse_string works on exbioctet strings ... ok parse_string works on exaoctet strings ... ok parse_string works on gigabit strings ... ok parse_string works on mebibyte strings ... ok parse_string works on mebioctet strings ... ok parse_string works on megaoctet strings ... ok parse_string works on bit strings ... ok parse_string can identify invalid float values ... ok parse_string can identify invalid prefix units ... ok parse_string can identify other prefix units ... ok parse_string can identify strings without units at all ... ok parse_string can identify a non-string input ... ok parse_string can handle a unicode string ... ok parse_string_unsafe can parse the examples reported in issue #60 ... ok parse_string_unsafe can convert to NIST on request ... ok parse_string_unsafe can parse all accepted NIST inputs ... ok parse_string_unsafe can parse abbreviated NIST units (Gi, Ki, ...) ... ok parse_string_unsafe can parse all accepted SI inputs ... ok parse_string_unsafe can identify invalid input types ... ok parse_string_unsafe can parse unitless number inputs ... ok parse_string_unsafe can parse the upper/lowercase SI 'thousand' (k) ... ok parse_string_unsafe explodes when given invalid units ... ok Read the 'bits' property of a bitmath type ... ok Read the 'bytes' property of a bitmath type ... ok Read the 'value' property of a bitmath type ... ok bitmath type's properties are read-only ... ok query device capacity aborts if a non-block-device is provided ... ok query device capacity works on a happy Linux host ... ok query device capacity works on a happy Mac OS X host ... ok query device capacity fails on a non-posix host ... ok KiB(1.0) looks right if changing fmt str in bitmath.KiB ... ok MiB(0.5) looks correct in a terminal ... ok MiB(0.5) looks correct as a string ... ok kB(1).system is SI ... ok kB(1).unit is kB ... ok KiB(1).base is 2 ... ok KiB(1).bin (binary alias) is binary ... ok KiB(1).binary is binary ... ok KiB(1).power (binary alias) is 10 ... ok KiB(1).system is NIST ... ok KiB(1).unit is KiB ... ok KiB(12345) as a MiB (12.0556640625) truncates to 5 digits ... ok Byte(1.0) prints out units in singular form ... ok MiB(102.4754) prints out with four digits of precision ... ok MiB(1/3.0) prints out with two digits of precision ... ok KiB(1) looks correct in a terminal ... ok KiB(1) looks correct as a string ... ok Two equal values are actually equal ... ok Unequal objects aren't equal ... ok Unequal objects aren't equal with numbers ... ok Two equal values are actually equal with numbers ... ok 1 GiB is greater than 1 Mib ... ok Greater or equal is more than or equal to one MiB ... ok Greater or equal is more than or equal to int(1) ... ok 1 GiB is greater than 0.5 ... ok One KiB is less than one MiB ... ok Smaller or equal is less than or equal to one MiB ... ok Smaller or equal is less than or equal to int(2) ... ok One KiB is less than int(2) ... ok Different types in a list can be sorted properly ... ok Same types in a list can be sorted properly ... ok Bitmath types can be sorted by 'bits' attribute ... ok Bitmath types can be sorted by 'bytes' attribute ... ok Same types can be sorted by 'value' attribute ... ok Convert an NIST unit into an SI unit ... ok Convert an SI unit into an NIST unit ... ok Converted down type has an equivalent value to the original ... ok Converted up type has an equivalent value to the original ... ok MiB object from_other object ... ok from_other raises if "other" isn't a bitmath instance ... ok Convert to Bit ... ok Convert to Byte ... ok Convert a bitmath GiB into a EB ... ok Convert a bitmath GiB into a Eb ... ok Convert a bitmath PiB into a EiB ... ok Convert a bitmath GiB into a Eib ... ok Convert a bitmath GiB into a GB ... ok Convert a bitmath GiB into a Gb ... ok Convert a bitmath TiB into a GiB ... ok Convert a bitmath GiB into a Gib ... ok Convert to KiB ... ok Convert to Kib ... ok Convert a bitmath GiB into a MB ... ok Convert a bitmath GiB into a Mb ... ok Convert a bitmath GiB into a MiB ... ok Convert a bitmath GiB into a Mib ... ok Convert a bitmath GiB into a PB ... ok Convert a bitmath GiB into a Pb ... ok Convert a bitmath TiB into a PiB ... ok Convert a bitmath GiB into a PiB ... ok Convert a bitmath GiB into a TB ... ok Convert a bitmath GiB into a Tb ... ok Convert a bitmath PiB into a TiB ... ok Convert a bitmath GiB into a Tib ... ok Convert a bitmath GiB into a YB ... ok Convert a bitmath GiB into a Yb ... ok Convert a bitmath GiB into a ZB ... ok Convert a bitmath GiB into a Zb ... ok Convert to kb ... ok Convert a bitmath Bit into a MiB ... ok bitmath type converted to the same unit is properly converted ... ok float(bitmath) returns a float ... ok int(bitmath) returns an int ... ok long(bitmath) returns a long ... ok capitalize_first doesn't change anything if the input is already correct ... ok capitalize_first upcases just the first letter in a word ... ok capitalize_first doesn't change anything if the input begins with a number ... ok ---------------------------------------------------------------------- Ran 201 tests in 0.160s OK + exit 0 Processing files: python2-bitmath-1.3.1-1.fc26.3.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.3Xpx5Y + umask 022 + cd /builddir/build/BUILD + cd bitmath-1.3.1.1 + DOCDIR=/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python2-bitmath + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python2-bitmath + cp -pr README.rst /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python2-bitmath + cp -pr NEWS.rst /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python2-bitmath + cp -pr LICENSE /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python2-bitmath + exit 0 Provides: python-bitmath = 1.3.1-1.fc26.3 python2-bitmath = 1.3.1-1.fc26.3 python2.7dist(bitmath) = 1.3.1.1 python2dist(bitmath) = 1.3.1.1 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: /usr/bin/python2 python(abi) = 2.7 Obsoletes: python-bitmath < 1.3.1-1.fc26.3 Processing files: python3-bitmath-1.3.1-1.fc26.3.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.L3axGJ + umask 022 + cd /builddir/build/BUILD + cd bitmath-1.3.1.1 + DOCDIR=/builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python3-bitmath + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python3-bitmath + cp -pr README.rst /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python3-bitmath + cp -pr NEWS.rst /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python3-bitmath + cp -pr LICENSE /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch/usr/share/doc/python3-bitmath + exit 0 Provides: python3-bitmath = 1.3.1-1.fc26.3 python3.6dist(bitmath) = 1.3.1.1 python3dist(bitmath) = 1.3.1.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 python(abi) = 3.6 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch Wrote: /builddir/build/RPMS/python2-bitmath-1.3.1-1.fc26.3.noarch.rpm Wrote: /builddir/build/RPMS/python3-bitmath-1.3.1-1.fc26.3.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ZFl1Iz + umask 022 + cd /builddir/build/BUILD + cd bitmath-1.3.1.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/python-bitmath-1.3.1-1.fc26.3.noarch + exit 0 Child return code was: 0