File: 0007-disable-test-for-python3.8.patch

package info (click to toggle)
celery 5.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,008 kB
  • sloc: python: 64,346; sh: 795; makefile: 378
file content (28 lines) | stat: -rw-r--r-- 939 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: =?utf-8?q?H=C3=A5vard_Flaget_Aasen?= <haavard_aasen@yahoo.no>
Date: Wed, 25 Mar 2020 15:05:55 +0100
Subject: disable test for python3.8

---
 t/unit/security/test_security.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/t/unit/security/test_security.py b/t/unit/security/test_security.py
index fc9a5e6..690322d 100644
--- a/t/unit/security/test_security.py
+++ b/t/unit/security/test_security.py
@@ -17,6 +17,7 @@ import builtins
 import os
 import tempfile
 from unittest.mock import Mock, patch
+import sys
 
 import pytest
 from kombu.exceptions import SerializerNotInstalled
@@ -120,6 +121,7 @@ class test_security(SecurityCase):
         disabled.clear()
 
     @patch('celery.current_app')
+    @pytest.mark.skipif(sys.version_info > (3, 8), reason='breaks with python 3.8')
     def test_setup_security__default_app(self, current_app):
         with pytest.raises(ImproperlyConfigured):
             setup_security()