]> git.pld-linux.org Git - packages/python-testtools.git/commitdiff
- updated to 2.4.0 auto/th/python-testtools-2.4.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 17 Mar 2022 20:54:21 +0000 (21:54 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 17 Mar 2022 20:54:21 +0000 (21:54 +0100)
- updated deps patch
- removed obsolete py37 patch

python-testtools-deps.patch
python-testtools-py37.patch [deleted file]
python-testtools.spec

index 41643ae75bfb7ef5caf33ef321699af4caf5e5b8..096a1198c586e43b598a1b99498f4c9cc81567ea 100644 (file)
      return TestLoader().loadTestsFromName(__name__)
  
  
---- testtools-2.3.0/testtools/tests/test_compat.py.orig        2016-10-22 19:21:40.000000000 +0200
-+++ testtools-2.3.0/testtools/tests/test_compat.py     2018-07-26 18:57:49.558875829 +0200
-@@ -3,7 +3,10 @@
- """Tests for miscellaneous compatibility functions"""
+--- testtools-2.4.0/testtools/tests/test_compat.py.orig        2019-11-28 09:58:29.000000000 +0100
++++ testtools-2.4.0/testtools/tests/test_compat.py     2022-03-17 18:54:23.676536228 +0100
+@@ -4,7 +4,10 @@
  
+ import ast
  import io
 -import linecache2 as linecache
 +try:
diff --git a/python-testtools-py37.patch b/python-testtools-py37.patch
deleted file mode 100644 (file)
index 2241c83..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-From 29004731f9c480b7c44a9c2605513d50d372898f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
-Date: Thu, 17 May 2018 17:52:26 +0200
-Subject: [PATCH] Fix the tests on Python 3.7
-
-Exception's repr got changed not to include trailing comma
-
-Fixes https://github.com/testing-cabal/testtools/issues/270
----
- .travis.yml                                |  1 +
- testtools/tests/matchers/test_exception.py | 11 +++++++++--
- 2 files changed, 10 insertions(+), 2 deletions(-)
-
-diff --git a/.travis.yml b/.travis.yml
-index 7f1f4db7..784608e0 100644
---- a/.travis.yml
-+++ b/.travis.yml
-@@ -5,6 +5,7 @@ python:
-   - "3.4"
-   - "3.5"
-   - "3.6"
-+  - "3.7-dev"
-   - "pypy"
- install:
-diff --git a/testtools/tests/matchers/test_exception.py b/testtools/tests/matchers/test_exception.py
-index 6cd80af1..acd39252 100644
---- a/testtools/tests/matchers/test_exception.py
-+++ b/testtools/tests/matchers/test_exception.py
-@@ -32,15 +32,22 @@ class TestMatchesExceptionInstanceInterface(TestCase, TestMatchersInterface):
-     matches_matches = [error_foo]
-     matches_mismatches = [error_bar, error_base_foo]
-+    if sys.version_info >= (3, 7):
-+        # exception's repr has changed
-+        _e = ''
-+    else:
-+        _e = ','
-+
-     str_examples = [
--        ("MatchesException(Exception('foo',))",
-+        ("MatchesException(Exception('foo'%s))" % _e,
-          MatchesException(Exception('foo')))
-         ]
-     describe_examples = [
-         ("%r is not a %r" % (Exception, ValueError),
-          error_base_foo,
-          MatchesException(ValueError("foo"))),
--        ("ValueError('bar',) has different arguments to ValueError('foo',).",
-+        ("ValueError('bar'%s) has different arguments to ValueError('foo'%s)."
-+         % (_e, _e),
-          error_bar,
-          MatchesException(ValueError("foo"))),
-         ]
index f158611fac1c12be08316a08875e302ec75ea08c..234d51ee4b4bfedaf9e4fbd8f69d343206889014 100644 (file)
@@ -8,17 +8,16 @@
 Summary:       Extensions to the Python unit testing framework
 Summary(pl.UTF-8):     Rozszerzenie szkieletu testów jednostkowych Pythona
 Name:          python-testtools
-Version:       2.3.0
-Release:       4
+# keep 2.4.x here for python2 support
+Version:       2.4.0
+Release:       1
 License:       MIT
 Group:         Development/Tools
 #Source0Download: https://pypi.org/simple/testtools/
 Source0:       https://files.pythonhosted.org/packages/source/t/testtools/testtools-%{version}.tar.gz
-# Source0-md5: 0f0feb915497816cb99e39437494217e
+# Source0-md5: e8fc7185b47cfb908c641f8c4b2a6add
 Patch0:                %{name}-tests-nosource.patch
 Patch1:                %{name}-deps.patch
-# https://github.com/testing-cabal/testtools/commit/29004731f9c480b7c44a9c2605513d50d372898f.patch
-Patch2:                %{name}-py37.patch
 URL:           https://github.com/testing-cabal/testtools
 %if %{with python2}
 BuildRequires: python-devel >= 1:2.7
@@ -98,7 +97,6 @@ Dokumentacja HTML do pakietu Pythona testttools.
 %setup -q -n testtools-%{version}
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
 %if %{with python2}
This page took 0.134556 seconds and 4 git commands to generate.