Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-cached_property.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-4362c2c52b6a34f040b0a3661e0fb79a38631037/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=995) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/python-cached_property.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python2: No such file or directory Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-cached_property-1.3.0-7.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-cached_property.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-4362c2c52b6a34f040b0a3661e0fb79a38631037/root'shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-cached_property.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.X00YjK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + /usr/bin/gzip -dc /builddir/build/SOURCES/cached-property-1.3.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf /builddir/build/BUILD/python3-python-cached_property-1.3.0-7.el7 + cp -a . /builddir/build/BUILD/python3-python-cached_property-1.3.0-7.el7 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Sv4yns + exit 0 + umask 022 + cd /builddir/build/BUILD + cd cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + /usr/bin/python2 setup.py build running build running build_py creating build creating build/lib copying cached_property.py -> build/lib running egg_info creating cached_property.egg-info writing cached_property.egg-info/PKG-INFO writing top-level names to cached_property.egg-info/top_level.txt writing dependency_links to cached_property.egg-info/dependency_links.txt writing manifest file 'cached_property.egg-info/SOURCES.txt' reading manifest file 'cached_property.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no files found matching '*.rst' under directory 'docs' warning: no files found matching 'conf.py' under directory 'docs' warning: no files found matching 'Makefile' under directory 'docs' warning: no files found matching 'make.bat' under directory 'docs' writing manifest file 'cached_property.egg-info/SOURCES.txt' ~/build/BUILD/python3-python-cached_property-1.3.0-7.el7 ~/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + pushd /builddir/build/BUILD/python3-python-cached_property-1.3.0-7.el7 + /usr/bin/python3.4 setup.py build running build running build_py creating build creating build/lib copying cached_property.py -> build/lib running egg_info creating cached_property.egg-info writing cached_property.egg-info/PKG-INFO writing top-level names to cached_property.egg-info/top_level.txt writing dependency_links to cached_property.egg-info/dependency_links.txt writing manifest file 'cached_property.egg-info/SOURCES.txt' reading manifest file 'cached_property.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no files found matching '*.rst' under directory 'docs' warning: no files found matching 'conf.py' under directory 'docs' warning: no files found matching 'Makefile' under directory 'docs' warning: no files found matching 'make.bat' under directory 'docs' writing manifest file 'cached_property.egg-info/SOURCES.txt' ~/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + popd + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.rd1Ort + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch ++ dirname /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch + cd cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + /usr/bin/python2 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr creating /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python2.7/site-packages copying build/lib/cached_property.py -> /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python2.7/site-packages byte-compiling /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python2.7/site-packages/cached_property.py to cached_property.pyc writing byte-compilation script '/tmp/tmpGsXzZA.py' /usr/bin/python2 -O /tmp/tmpGsXzZA.py removing /tmp/tmpGsXzZA.py running install_egg_info running egg_info writing cached_property.egg-info/PKG-INFO writing top-level names to cached_property.egg-info/top_level.txt writing dependency_links to cached_property.egg-info/dependency_links.txt reading manifest file 'cached_property.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no files found matching '*.rst' under directory 'docs' warning: no files found matching 'conf.py' under directory 'docs' warning: no files found matching 'Makefile' under directory 'docs' warning: no files found matching 'make.bat' under directory 'docs' writing manifest file 'cached_property.egg-info/SOURCES.txt' Copying cached_property.egg-info to /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python2.7/site-packages/cached_property-1.3.0-py2.7.egg-info running install_scripts ~/build/BUILD/python3-python-cached_property-1.3.0-7.el7 ~/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + pushd /builddir/build/BUILD/python3-python-cached_property-1.3.0-7.el7 + /usr/bin/python3.4 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python3.4 creating /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python3.4/site-packages copying build/lib/cached_property.py -> /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python3.4/site-packages byte-compiling /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python3.4/site-packages/cached_property.py to cached_property.cpython-34.pyc writing byte-compilation script '/tmp/tmpct0j5wo2.py' /usr/bin/python3.4 -O /tmp/tmpct0j5wo2.py removing /tmp/tmpct0j5wo2.py running install_egg_info running egg_info writing dependency_links to cached_property.egg-info/dependency_links.txt writing top-level names to cached_property.egg-info/top_level.txt writing cached_property.egg-info/PKG-INFO reading manifest file 'cached_property.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '__pycache__' found under directory '*' warning: no previously-included files matching '*.py[co]' found under directory '*' warning: no files found matching '*.rst' under directory 'docs' warning: no files found matching 'conf.py' under directory 'docs' warning: no files found matching 'Makefile' under directory 'docs' warning: no files found matching 'make.bat' under directory 'docs' writing manifest file 'cached_property.egg-info/SOURCES.txt' Copying cached_property.egg-info to /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python3.4/site-packages/cached_property-1.3.0-py3.4.egg-info running install_scripts ~/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + popd + /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/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 /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-cached_property-1.3.0-7.el7.noarch/usr/lib/python2.7 using /usr/bin/python2.7 Bytecompiling .py files below /builddir/build/BUILDROOT/python-cached_property-1.3.0-7.el7.noarch/usr/lib/python3.4 using /usr/bin/python3.4 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.GRpiWv + umask 022 + cd /builddir/build/BUILD + cd cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709 + PYTHONPATH=./ + py.test ============================= test session starts ============================== platform linux2 -- Python 2.7.5 -- py-1.4.32 -- pytest-2.7.0 rootdir: /builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709, inifile: collected 24 items tests/test_cached_property.py ..........F...FFFF...FFF =================================== FAILURES =================================== ________________ TestCachedPropertyWithTTL.test_cached_property ________________ self = def test_cached_property(self): Check = CheckFactory(self.cached_property_factory) check = Check() # The control shows that we can continue to add 1 self.assert_control(check, 1) self.assert_control(check, 2) # The cached version demonstrates how nothing is added after the first self.assert_cached(check, 1) self.assert_cached(check, 1) # The cache does not expire with freeze_time("9999-01-01"): > self.assert_cached(check, 1) tests/test_cached_property.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ____________________ TestCachedPropertyWithTTL.test_threads ____________________ self = def test_threads(self): Check = CheckFactory(self.cached_property_factory, threadsafe=True) check = Check() num_threads = 5 # cached_property_with_ttl is *not* thread-safe! check.run_threads(num_threads) # This assertion hinges on the fact the system executing the test can # spawn and start running num_threads threads within the sleep period # (defined in the Check class as 1 second). If num_threads were to be # massively increased (try 10000), the actual value returned would be # between 1 and num_threads, depending on thread scheduling and # preemption. self.assert_cached(check, num_threads) self.assert_cached(check, num_threads) # The cache does not expire with freeze_time("9999-01-01"): check.run_threads(num_threads) > self.assert_cached(check, num_threads) tests/test_cached_property.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ----------------------------- Captured stderr call ----------------------------- Exception in thread Thread-26: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-27: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-28: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-29: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-30: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range ______________ TestCachedPropertyWithTTL.test_threads_ttl_expiry _______________ self = def test_threads_ttl_expiry(self): Check = CheckFactory(self.cached_property_factory(ttl=100000), threadsafe=True) check = Check() num_threads = 5 # Same as in test_threads check.run_threads(num_threads) self.assert_cached(check, num_threads) self.assert_cached(check, num_threads) # The cache expires in the future with freeze_time("9999-01-01"): check.run_threads(num_threads) > self.assert_cached(check, 2 * num_threads) tests/test_cached_property.py:208: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ----------------------------- Captured stderr call ----------------------------- Exception in thread Thread-36: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-37: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-38: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-39: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-40: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range __________________ TestCachedPropertyWithTTL.test_ttl_expiry ___________________ self = def test_ttl_expiry(self): Check = CheckFactory(self.cached_property_factory(ttl=100000)) check = Check() # Run standard cache assertion self.assert_cached(check, 1) self.assert_cached(check, 1) # The cache expires in the future with freeze_time("9999-01-01"): > self.assert_cached(check, 2) tests/test_cached_property.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ____________ TestThreadedCachedPropertyWithTTL.test_cached_property ____________ self = def test_cached_property(self): Check = CheckFactory(self.cached_property_factory) check = Check() # The control shows that we can continue to add 1 self.assert_control(check, 1) self.assert_control(check, 2) # The cached version demonstrates how nothing is added after the first self.assert_cached(check, 1) self.assert_cached(check, 1) # The cache does not expire with freeze_time("9999-01-01"): > self.assert_cached(check, 1) tests/test_cached_property.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:127: in __get__ cls) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ________________ TestThreadedCachedPropertyWithTTL.test_threads ________________ self = def test_threads(self): Check = CheckFactory(self.cached_property_factory, threadsafe=True) check = Check() num_threads = 5 # threaded_cached_property_with_ttl is thread-safe check.run_threads(num_threads) self.assert_cached(check, 1) self.assert_cached(check, 1) # The cache does not expire with freeze_time("9999-01-01"): check.run_threads(num_threads) > self.assert_cached(check, 1) tests/test_cached_property.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:127: in __get__ cls) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ----------------------------- Captured stderr call ----------------------------- Exception in thread Thread-46: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-47: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-48: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-49: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-50: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range __________ TestThreadedCachedPropertyWithTTL.test_threads_ttl_expiry ___________ self = def test_threads_ttl_expiry(self): Check = CheckFactory(self.cached_property_factory(ttl=100000), threadsafe=True) check = Check() num_threads = 5 # Same as in test_threads check.run_threads(num_threads) self.assert_cached(check, 1) self.assert_cached(check, 1) # The cache expires in the future with freeze_time("9999-01-01"): check.run_threads(num_threads) > self.assert_cached(check, 2) tests/test_cached_property.py:236: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:127: in __get__ cls) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ----------------------------- Captured stderr call ----------------------------- Exception in thread Thread-56: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-57: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-58: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-59: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range Exception in thread Thread-60: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 812, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 765, in run self.__target(*self.__args, **self.__kwargs) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/tests/test_cached_property.py", line 44, in thread = Thread(target=lambda: self.add_cached) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 127, in __get__ cls) File "/builddir/build/BUILD/cached-property-34b1caf8aa122d82836c4dc58c082d3d61bbb709/cached_property.py", line 80, in __get__ now = time() File "/usr/lib/python2.7/site-packages/freezegun/api.py", line 28, in __call__ return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 OverflowError: mktime argument out of range ______________ TestThreadedCachedPropertyWithTTL.test_ttl_expiry _______________ self = def test_ttl_expiry(self): Check = CheckFactory(self.cached_property_factory(ttl=100000)) check = Check() # Run standard cache assertion self.assert_cached(check, 1) self.assert_cached(check, 1) # The cache expires in the future with freeze_time("9999-01-01"): > self.assert_cached(check, 2) tests/test_cached_property.py:187: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/test_cached_property.py:69: in assert_cached self.assertEqual(check.add_cached, expected) cached_property.py:127: in __get__ cls) cached_property.py:80: in __get__ now = time() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def __call__(self): shifted_time = self.time_to_freeze - datetime.timedelta(seconds=time.timezone) > return time.mktime(shifted_time.timetuple()) + shifted_time.microsecond / 1000000.0 E OverflowError: mktime argument out of range /usr/lib/python2.7/site-packages/freezegun/api.py:28: OverflowError ===================== 8 failed, 16 passed in 10.22 seconds ===================== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.GRpiWv (%check) Bad exit status from /var/tmp/rpm-tmp.GRpiWv (%check) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/python-cached_property.spec