summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-22 15:34:19 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-10-22 15:34:44 +0200
commit753a34b42ae2f24536dbfe37dda8d71a992eca5c (patch)
tree0e67cf8433befb8d6b7f360d7f562e42bb956ca7
parent213a39b4df1edb36b042e347a6c344b3fcd27bc0 (diff)
[3.0.x] Refs #29926 -- Skipped RemoteTestResultTest.test_add_failing_subtests() on Python 3.8+ and tblib <= 1.4.0.
Backport of 2847d2c760438195c4c71ea9d3fded1ce116ea4e from master
-rw-r--r--tests/test_runner/test_parallel.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_runner/test_parallel.py b/tests/test_runner/test_parallel.py
index c1a89bd0f0..cb69c2bf4f 100644
--- a/tests/test_runner/test_parallel.py
+++ b/tests/test_runner/test_parallel.py
@@ -2,7 +2,7 @@ import unittest
from django.test import SimpleTestCase
from django.test.runner import RemoteTestResult
-from django.utils.version import PY37
+from django.utils.version import PY37, PY38
try:
import tblib
@@ -63,6 +63,11 @@ class RemoteTestResultTest(SimpleTestCase):
with self.assertRaisesMessage(TypeError, msg):
result._confirm_picklable(not_unpicklable_error)
+ @unittest.skipIf(
+ PY38 and tblib is not None and tblib.__version__ <= '1.4.0',
+ 'tblib <= 1.4.0 does not support Python 3.8 due to changes in the '
+ 'CodeType signature (see https://bugs.python.org/issue36886).'
+ )
@unittest.skipUnless(tblib is not None, 'requires tblib to be installed')
def test_add_failing_subtests(self):
"""