public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/coverage/, dev-python/coverage/files/
@ 2019-11-26  2:18 Patrick McLean
  0 siblings, 0 replies; only message in thread
From: Patrick McLean @ 2019-11-26  2:18 UTC (permalink / raw
  To: gentoo-commits

commit:     18ace7a0776d40378c2e4e79b7d18479046d6bce
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Tue Nov 26 02:17:45 2019 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Tue Nov 26 02:17:45 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18ace7a0

dev-python/coverage-4.5.4: Add py38, fix tests on python2_7

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/coverage/coverage-4.5.4.ebuild          |  2 +-
 .../coverage/files/coverage-4.5.4-tests.patch      | 26 +++++++++++++++++++---
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/dev-python/coverage/coverage-4.5.4.ebuild b/dev-python/coverage/coverage-4.5.4.ebuild
index e0198d5dd4e..81e5e171ba3 100644
--- a/dev-python/coverage/coverage-4.5.4.ebuild
+++ b/dev-python/coverage/coverage-4.5.4.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy pypy3 )
+PYTHON_COMPAT=( python{2_7,3_{5,6,7,8}} pypy{,3} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1

diff --git a/dev-python/coverage/files/coverage-4.5.4-tests.patch b/dev-python/coverage/files/coverage-4.5.4-tests.patch
index 193c4e88ef9..779102c8f65 100644
--- a/dev-python/coverage/files/coverage-4.5.4-tests.patch
+++ b/dev-python/coverage/files/coverage-4.5.4-tests.patch
@@ -15,7 +15,7 @@ index 0370cf84..4e3cf1ca 100644
  
  clean("out_timid")
 diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py
-index 578cc679..ae340099 100644
+index 578cc679..c875be86 100644
 --- a/tests/test_concurrency.py
 +++ b/tests/test_concurrency.py
 @@ -11,6 +11,7 @@ import time
@@ -26,7 +26,27 @@ index 578cc679..ae340099 100644
  import coverage
  from coverage import env
  from coverage.backward import import_local_file
-@@ -271,6 +272,7 @@ class ConcurrencyTest(CoverageTest):
+@@ -255,22 +256,27 @@ class ConcurrencyTest(CoverageTest):
+         code = SIMPLE.format(QLIMIT=self.QLIMIT)
+         self.try_some_code(code, "thread", threading)
+ 
++    @unittest.skipIf(env.PY2, "eventlet tests don't work with python tracer on python2")
+     def test_eventlet(self):
+         code = (EVENTLET + SUM_RANGE_Q + PRINT_SUM_RANGE).format(QLIMIT=self.QLIMIT)
+         self.try_some_code(code, "eventlet", eventlet)
+ 
++    @unittest.skipIf(env.PY2, "eventlet tests don't work with python tracer on python2")
+     def test_eventlet_simple_code(self):
+         code = SIMPLE.format(QLIMIT=self.QLIMIT)
+         self.try_some_code(code, "eventlet", eventlet)
+ 
++    @unittest.skipIf(env.PY2, "gevent tests don't work with python tracer on python2")
+     def test_gevent(self):
+         code = (GEVENT + SUM_RANGE_Q + PRINT_SUM_RANGE).format(QLIMIT=self.QLIMIT)
+         self.try_some_code(code, "gevent", gevent)
+ 
++    @unittest.skipIf(env.PY2, "gevent tests don't work with python tracer on python2")
+     def test_gevent_simple_code(self):
          code = SIMPLE.format(QLIMIT=self.QLIMIT)
          self.try_some_code(code, "gevent", gevent)
  
@@ -34,7 +54,7 @@ index 578cc679..ae340099 100644
      def test_greenlet(self):
          GREENLET = """\
              from greenlet import greenlet
-@@ -289,6 +291,7 @@ class ConcurrencyTest(CoverageTest):
+@@ -289,6 +295,7 @@ class ConcurrencyTest(CoverageTest):
              """
          self.try_some_code(GREENLET, "greenlet", greenlet, "hello world\n42\n")
  


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-26  2:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-26  2:18 [gentoo-commits] repo/gentoo:master commit in: dev-python/coverage/, dev-python/coverage/files/ Patrick McLean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox