Fix sed substitutions for unittest2 and assertItemsEqual
This commit is contained in:
parent
e7d90aa880
commit
0c8287c279
@ -1,6 +1,6 @@
|
||||
Name: cloud-init
|
||||
Version: 19.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Cloud instance init scripts
|
||||
License: ASL 2.0 or GPLv3
|
||||
URL: http://launchpad.net/cloud-init
|
||||
@ -86,9 +86,10 @@ ssh keys and to let the user run various scripts.
|
||||
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
|
||||
-e 's|#!/usr/bin/python|#!/usr/bin/python3|' tools/* cloudinit/ssh_util.py
|
||||
|
||||
# Use unittest from the standard library
|
||||
sed -i s/unittest2/unittest/ cloudinit/tests/*.py
|
||||
sed -i s/assertItemsEqual/assertCountEqual/ tests/unittests/test_handler/*.py
|
||||
# Use unittest from the standard library. unittest2 is old and being
|
||||
# retired in Fedora. See https://bugzilla.redhat.com/show_bug.cgi?id=1794222
|
||||
find cloudinit/tests/ tests/ -type f | xargs sed -i s/unittest2/unittest/
|
||||
find cloudinit/tests/ tests/ -type f | xargs sed -i s/assertItemsEqual/assertCountEqual/
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
@ -157,6 +158,9 @@ nosetests-%{python3_version} tests/unittests/
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Feb 23 2020 Dusty Mabe <dusty@dustymabe.com> - 19.4-2
|
||||
- Fix sed substitutions for unittest2 and assertItemsEqual
|
||||
|
||||
* Fri Feb 14 2020 Eduardo Otubo <otubo@redhat.com> - 19.4-1
|
||||
- Updated to 19.4
|
||||
- Rebasing the Fedora specific patches but removing patches that don't apply anymore
|
||||
|
Loading…
Reference in New Issue
Block a user