Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/coverage/, dev-python/coverage/files/
Date: Tue, 26 Nov 2019 02:18:08
Message-Id: 1574734665.18ace7a0776d40378c2e4e79b7d18479046d6bce.chutzpah@gentoo
1 commit: 18ace7a0776d40378c2e4e79b7d18479046d6bce
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Tue Nov 26 02:17:45 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 26 02:17:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18ace7a0
7
8 dev-python/coverage-4.5.4: Add py38, fix tests on python2_7
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/coverage/coverage-4.5.4.ebuild | 2 +-
15 .../coverage/files/coverage-4.5.4-tests.patch | 26 +++++++++++++++++++---
16 2 files changed, 24 insertions(+), 4 deletions(-)
17
18 diff --git a/dev-python/coverage/coverage-4.5.4.ebuild b/dev-python/coverage/coverage-4.5.4.ebuild
19 index e0198d5dd4e..81e5e171ba3 100644
20 --- a/dev-python/coverage/coverage-4.5.4.ebuild
21 +++ b/dev-python/coverage/coverage-4.5.4.ebuild
22 @@ -2,7 +2,7 @@
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 )
27 +PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
28 PYTHON_REQ_USE="threads(+)"
29
30 inherit distutils-r1
31
32 diff --git a/dev-python/coverage/files/coverage-4.5.4-tests.patch b/dev-python/coverage/files/coverage-4.5.4-tests.patch
33 index 193c4e88ef9..779102c8f65 100644
34 --- a/dev-python/coverage/files/coverage-4.5.4-tests.patch
35 +++ b/dev-python/coverage/files/coverage-4.5.4-tests.patch
36 @@ -15,7 +15,7 @@ index 0370cf84..4e3cf1ca 100644
37
38 clean("out_timid")
39 diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
40 -index 578cc679..ae340099 100644
41 +index 578cc679..c875be86 100644
42 --- a/tests/test_concurrency.py
43 +++ b/tests/test_concurrency.py
44 @@ -11,6 +11,7 @@ import time
45 @@ -26,7 +26,27 @@ index 578cc679..ae340099 100644
46 import coverage
47 from coverage import env
48 from coverage.backward import import_local_file
49 -@@ -271,6 +272,7 @@ class ConcurrencyTest(CoverageTest):
50 +@@ -255,22 +256,27 @@ class ConcurrencyTest(CoverageTest):
51 + code = SIMPLE.format(QLIMIT=self.QLIMIT)
52 + self.try_some_code(code, "thread", threading)
53 +
54 ++ @unittest.skipIf(env.PY2, "eventlet tests don't work with python tracer on python2")
55 + def test_eventlet(self):
56 + code = (EVENTLET + SUM_RANGE_Q + PRINT_SUM_RANGE).format(QLIMIT=self.QLIMIT)
57 + self.try_some_code(code, "eventlet", eventlet)
58 +
59 ++ @unittest.skipIf(env.PY2, "eventlet tests don't work with python tracer on python2")
60 + def test_eventlet_simple_code(self):
61 + code = SIMPLE.format(QLIMIT=self.QLIMIT)
62 + self.try_some_code(code, "eventlet", eventlet)
63 +
64 ++ @unittest.skipIf(env.PY2, "gevent tests don't work with python tracer on python2")
65 + def test_gevent(self):
66 + code = (GEVENT + SUM_RANGE_Q + PRINT_SUM_RANGE).format(QLIMIT=self.QLIMIT)
67 + self.try_some_code(code, "gevent", gevent)
68 +
69 ++ @unittest.skipIf(env.PY2, "gevent tests don't work with python tracer on python2")
70 + def test_gevent_simple_code(self):
71 code = SIMPLE.format(QLIMIT=self.QLIMIT)
72 self.try_some_code(code, "gevent", gevent)
73
74 @@ -34,7 +54,7 @@ index 578cc679..ae340099 100644
75 def test_greenlet(self):
76 GREENLET = """\
77 from greenlet import greenlet
78 -@@ -289,6 +291,7 @@ class ConcurrencyTest(CoverageTest):
79 +@@ -289,6 +295,7 @@ class ConcurrencyTest(CoverageTest):
80 """
81 self.try_some_code(GREENLET, "greenlet", greenlet, "hello world\n42\n")