dev-python/coverage-4.5.4: Add py38, fix tests on python2_7
authorPatrick McLean <patrick.mclean@sony.com>
Tue, 26 Nov 2019 02:17:45 +0000 (18:17 -0800)
committerPatrick McLean <chutzpah@gentoo.org>
Tue, 26 Nov 2019 02:17:45 +0000 (18:17 -0800)
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
dev-python/coverage/coverage-4.5.4.ebuild
dev-python/coverage/files/coverage-4.5.4-tests.patch

index e0198d5dd4eacc92f720ac5191bcf48b5ccf3ca5..81e5e171ba36e2a2ee793c2df7473db58c817b5a 100644 (file)
@@ -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
index 193c4e88ef9110bd4051af830a305468f2913454..779102c8f658650efa1134795163c29de5fc3708 100644 (file)
@@ -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")