https://bugzilla.redhat.com/show_bug.cgi?id=1748956



--- Comment #6 from Jared Smith <jsmith.fed...@gmail.com> ---
There appears to be a problem running the checks when trying to rebuild the
SRPM in mock (configured for rawhide):

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.oQhrEv
+ umask 022
+ cd /builddir/build/BUILD
+ cd dateparser-0.7.2
+
PYTHONPATH=/builddir/build/BUILDROOT/python-dateparser-0.7.2-1.fc32.x86_64//usr/lib/python3.8/site-packages
+ pytest-3.8 tests
============================= test session starts
==============================
platform linux -- Python 3.8.0, pytest-4.6.6, py-1.8.0, pluggy-0.12.0
rootdir: /builddir/build/BUILD/dateparser-0.7.2
collected 21838 items / 4 errors / 21834 selected                              

==================================== ERRORS
====================================
_____________________ ERROR collecting tests/test_date.py
______________________
ImportError while importing test module
'/builddir/build/BUILD/dateparser-0.7.2/tests/test_date.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_date.py:9: in <module>
    from mock import Mock, patch
E   ModuleNotFoundError: No module named 'mock'
__________________ ERROR collecting tests/test_date_parser.py
__________________
ImportError while importing test module
'/builddir/build/BUILD/dateparser-0.7.2/tests/test_date_parser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_date_parser.py:8: in <module>
    from mock import patch, Mock
E   ModuleNotFoundError: No module named 'mock'
_____________ ERROR collecting tests/test_freshness_date_parser.py
_____________
ImportError while importing test module
'/builddir/build/BUILD/dateparser-0.7.2/tests/test_freshness_date_parser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_freshness_date_parser.py:10: in <module>
    from mock import Mock, patch
E   ModuleNotFoundError: No module named 'mock'
________________ ERROR collecting tests/test_timezone_parser.py
________________
ImportError while importing test module
'/builddir/build/BUILD/dateparser-0.7.2/tests/test_timezone_parser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_timezone_parser.py:5: in <module>
    from mock import Mock, patch
E   ModuleNotFoundError: No module named 'mock'
=============================== warnings summary
===============================
tests/test_languages.py:2104
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_languages.py:2104:
DeprecationWarning: invalid escape sequence \d
    {'simplifications': [{'(\d+)\s*hr(s?)\g<(.+?)>': r'\1 hour\2'}]},

tests/test_loading.py:104
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_loading.py:104:
DeprecationWarning: invalid escape sequence \(
    UNKNOWN_LANGUAGES_EXCEPTION_RE = re.compile("Unknown language\(s\): (.+)")

tests/test_loading.py:105
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_loading.py:105:
DeprecationWarning: invalid escape sequence \(
    UNKNOWN_LOCALES_EXCEPTION_RE = re.compile("Unknown locale\(s\): (.+)")

tests/test_settings.py:28
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_settings.py:28:
DeprecationWarning: invalid escape sequence \+
    param('12 Feb 2015 10:30 PM +0100', datetime(2015, 2, 12, 22, 30),
'UTC\+01:00'),

tests/test_settings.py:132
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_settings.py:132:
DeprecationWarning: invalid escape sequence \}
    with self.assertRaisesRegexp(TypeError, 'Invalid.*None\}'):

tests/test_settings.py:135
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_settings.py:135:
DeprecationWarning: invalid escape sequence \}
    with self.assertRaisesRegexp(TypeError, 'Invalid.*None\}'):

tests/test_settings.py:138
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_settings.py:138:
DeprecationWarning: invalid escape sequence \}
    with self.assertRaisesRegexp(TypeError, 'Invalid.*None\}'):

tests/test_utils.py:64
  /builddir/build/BUILD/dateparser-0.7.2/tests/test_utils.py:64:
DeprecationWarning: invalid escape sequence \+
    param(datetime(2015, 12, 12), timezone='UTC+3', zone='UTC\+03:00'),

-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection
!!!!!!!!!!!!!!!!!!!!
===================== 8 warnings, 4 error in 5.54 seconds
======================
error: Bad exit status from /var/tmp/rpm-tmp.oQhrEv (%check)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.oQhrEv (%check)
Finish: rpmbuild python-dateparser-0.7.2-1.fc30.src.rpm
Finish: build phase for python-dateparser-0.7.2-1.fc30.src.rpm
ERROR: Exception(python-dateparser-0.7.2-1.fc30.src.rpm)
Config(fedora-rawhide-x86_64) 0 minutes 39 seconds
INFO: Results and/or logs in: /var/lib/mock/fedora-rawhide-x86_64/result
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 86f6809f109c4dbbb610bdb8658c28bf -D
/var/lib/mock/fedora-rawhide-x86_64/root -a --capability=cap_ipc_lock
--bind=/tmp/mock-resolv.qmpdo54s:/etc/resolv.conf --setenv=TERM=vt100
--setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock
--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf
"\033]0;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$ 
--setenv=LANG=en_US.UTF-8 -u mockbuild bash --login -c /usr/bin/rpmbuild -bb
--target x86_64 --nodeps /builddir/build/SPECS/python-dateparser.spec

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@lists.fedoraproject.org
To unsubscribe send an email to package-review-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/package-review@lists.fedoraproject.org

Reply via email to