aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-intervals/pytest5.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-11-14 13:09:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-14 13:10:42 +0000
commit0d940c92f473a294d6b15e2bf74b3ba92af70b54 (patch)
tree34ee54334e429074175a079cfca1e2d1580e4d37 /testing/py3-intervals/pytest5.patch
parenta38596fdac13672f38b77fce9276ab9fbcc31706 (diff)
downloadaports-0d940c92f473a294d6b15e2bf74b3ba92af70b54.tar.bz2
aports-0d940c92f473a294d6b15e2bf74b3ba92af70b54.tar.xz
testing/py3-intervals: fix tests
patch from Arch Linux. Thanks!
Diffstat (limited to 'testing/py3-intervals/pytest5.patch')
-rw-r--r--testing/py3-intervals/pytest5.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/py3-intervals/pytest5.patch b/testing/py3-intervals/pytest5.patch
new file mode 100644
index 0000000000..24b9f502d4
--- /dev/null
+++ b/testing/py3-intervals/pytest5.patch
@@ -0,0 +1,21 @@
+diff -upr intervals-0.8.1.orig/tests/interval/test_initialization.py intervals-0.8.1/tests/interval/test_initialization.py
+--- intervals-0.8.1.orig/tests/interval/test_initialization.py 2016-07-10 21:14:03.000000000 +0300
++++ intervals-0.8.1/tests/interval/test_initialization.py 2019-11-01 17:26:19.862962549 +0200
+@@ -23,7 +23,7 @@ class TestIntervalInit(object):
+ 'First argument should be a list or tuple. If you wish to '
+ 'initialize an interval from string, use from_string factory '
+ 'method.'
+- ) in str(e)
++ ) in str(e.value)
+
+ def test_invalid_argument(self):
+ with raises(IllegalArgument) as e:
+@@ -31,7 +31,7 @@ class TestIntervalInit(object):
+ assert (
+ 'The bounds may be equal only if at least one of the bounds is '
+ 'closed.'
+- ) in str(e)
++ ) in str(e.value)
+
+ def test_floats(self):
+ interval = FloatInterval((0.2, 0.5))