forked from pool/python-testtools
- Update to 0.9.12:
- Changes: * ``AfterPreproccessing`` renamed to ``AfterPreprocessing``, which is a more correct spelling. Old name preserved for backwards compatibility, but is now deprecated. Please stop using it. (Jonathan Lange, #813460) * ``assertThat`` raises ``MismatchError`` instead of ``TestCase.failureException``. ``MismatchError`` is a subclass of ``AssertionError``, so in most cases this change will not matter. However, if ``self.failureException`` has been set to a non-default value, then mismatches will become test errors rather than test failures. * ``gather_details`` takes two dicts, rather than two detailed objects. (Jonathan Lange, #801027) * ``MatchesRegex`` mismatch now says "<value> does not match /<regex>/" rather than "<regex> did not match <value>". The regular expression contains fewer backslashes too. (Jonathan Lange, #818079) * Tests that run with ``AsynchronousDeferredRunTest`` now have the ``reactor`` attribute set to the running reactor. (Jonathan Lange, #720749) - Improvements: * All public matchers are now in ``testtools.matchers.__all__``. (Jonathan Lange, #784859) * ``assertThat`` can actually display mismatches and matchers that contain extended unicode characters. (Jonathan Lange, Martin [gz], #804127) * ``assertThat`` output is much less verbose, displaying only what the mismatch tells us to display. Old-style verbose output can be had by passing ``verbose=True`` to assertThat. (Jonathan Lange, #675323, #593190) * ``assertThat`` accepts a message which will be used to annotate the matcher. This can be given as a third parameter or as a keyword OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-testtools?expand=0&rev=2
This commit is contained in:
@@ -15,21 +15,21 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define mod_name testtools
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 0.9.10
|
||||
Version: 0.9.12
|
||||
Release: 0
|
||||
Url: https://launchpad.net/testtools
|
||||
Summary: Extensions to the Python Standard Library Unit Testing Framework
|
||||
License: MIT
|
||||
Summary: Extensions to the Python Standard Library Unit Testing Framework
|
||||
Url: https://launchpad.net/testtools
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: %{mod_name}-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
@@ -43,10 +43,6 @@ framework. These extensions have been derived from many years of experience
|
||||
with unit testing in Python and come from many different sources. testtools
|
||||
also ports recent unittest changes all the way back to Python 2.4.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Jonathan M. Lange <jml@mumak.net>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
|
||||
@@ -65,4 +61,4 @@ rm -rf %{buildroot}
|
||||
%doc LICENSE NEWS README doc
|
||||
%python_sitelib/%{mod_name}*
|
||||
|
||||
%changelog
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user