14
0

Accepting request 264479 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/264479
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testtools?expand=0&rev=15
This commit is contained in:
2014-12-09 08:14:26 +00:00
committed by Git OBS Bridge
4 changed files with 47 additions and 9 deletions

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Mon Dec 1 22:48:47 UTC 2014 - dmueller@suse.com
- fix typo in last change
-------------------------------------------------------------------
Mon Dec 1 17:04:18 UTC 2014 - rhafer@suse.com
- Update to version 1.5.0:
* When an import error happens ``testtools.run`` will now show the full
error rather than just the name of the module that failed to import.
(Robert Collins)
* ``testtools.TestCase`` now inherits from unittest2.TestCase, which
provides a ``setUpClass`` for upcalls on Python 2.6.
(Robert Collins, #1393283)
* Fixed our setup.py to use setup_requires to ensure the import dependencies
for testtools are present before setup.py runs (as setup.py imports testtools
to read out the version number). (Robert Collins)
* Support setUpClass skipping with self.skipException. Previously this worked
with unittest from 2.7 and above but was not supported by testtools - it was
a happy accident. Since we now hard depend on unittest2, we need to invert
our exception lookup priorities to support it. Regular skips done through
raise self.skipException will continue to work, since they were always caught
in our code - its because the suite type being used to implement setUpClass
has changed that an issue occured.
(Robert Collins, #1393068)
* Correctly express our unittest2 dependency: we don't work with old releases.
(Robert Collins)
* Depends on unittest2 for discovery functionality and the ``TestProgram`` base
class. This brings in many fixes made to discovery where previously we were
only using the discovery package or the version in the release of Python
that the test execution was occuring on. (Robert Collins, #1271133)
* Fixed unit tests which were failing under pypy due to a change in the way
pypy formats tracebacks. (Thomi Richards)
* Fixed the testtools test suite to run correctly when run via ``unit2``
or ``testtools.run discover``.
* Make `testtools.content.text_content` error if anything other than text
is given as content. (Thomi Richards)
-------------------------------------------------------------------
Tue Sep 16 06:17:46 UTC 2014 - tbechtold@suse.com

View File

@@ -21,7 +21,7 @@
%bcond_with tests
Name: python-testtools
Version: 1.1.0
Version: 1.5.0
Release: 0
Summary: Extensions to the Python Standard Library Unit Testing Framework
License: MIT
@@ -29,15 +29,14 @@ Group: Development/Languages/Python
Url: https://launchpad.net/testtools
Source: https://pypi.python.org/packages/source/t/testtools/testtools-%{version}.tar.gz
BuildRequires: python-devel
# Documentation requirements:
BuildRequires: python-Sphinx
# Test requirements:
%if %{with tests}
BuildRequires: python-extras
BuildRequires: python-python-mimeparse
%endif
BuildRequires: python-unittest2 >= 0.8.0
# Documentation requirements:
BuildRequires: python-Sphinx
Requires: python-extras
Requires: python-python-mimeparse
Requires: python-unittest2 >= 0.8.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61f237050738995d43cbda9f6073afed8ee5c287f38080510a8d8dfe0b6cfc53
size 206864

3
testtools-1.5.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d22a559f15b4540e069df0d69698d5bc70d9c42c8694c5e253595d70283511a
size 205197