summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-22 09:07:08 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-22 09:40:44 +0100
commit4107d48f49c0d941d93c74e5358e09ad8d163bc7 (patch)
tree902e59df0346e2bf91ae9a1926f19bd4df1873cf /dev-python/priority/files
parentdev-python/hypothesis: Bump to 4.46.0 (diff)
downloadgentoo-4107d48f49c0d941d93c74e5358e09ad8d163bc7.tar.gz
gentoo-4107d48f49c0d941d93c74e5358e09ad8d163bc7.tar.bz2
gentoo-4107d48f49c0d941d93c74e5358e09ad8d163bc7.zip
dev-python/priority: Enable py3.8, fix tests
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/priority/files')
-rw-r--r--dev-python/priority/files/priority-1.3.0-test-timeout.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-python/priority/files/priority-1.3.0-test-timeout.patch b/dev-python/priority/files/priority-1.3.0-test-timeout.patch
new file mode 100644
index 000000000000..3b904f340998
--- /dev/null
+++ b/dev-python/priority/files/priority-1.3.0-test-timeout.patch
@@ -0,0 +1,20 @@
+diff -dupr a/test/test_priority.py b/test/test_priority.py
+--- a/test/test_priority.py 2017-01-27 11:57:03.000000000 +0100
++++ b/test/test_priority.py 2019-11-22 09:03:52.772710452 +0100
+@@ -12,7 +12,7 @@ import itertools
+
+ import pytest
+
+-from hypothesis import given
++from hypothesis import given, settings
+ from hypothesis.strategies import (
+ integers, lists, tuples, sampled_from
+ )
+@@ -489,6 +489,7 @@ class TestPriorityTreeOutput(object):
+ fairness and equidistribution.
+ """
+ @given(STREAMS_AND_WEIGHTS)
++ @settings(deadline=None)
+ def test_period_of_repetition(self, streams_and_weights):
+ """
+ The period of repetition of a priority sequence is given by the sum of