Debian Codegraph @

debian/patches/0005-disable-test-for-python3.8.patch

raw
1 From: =?utf-8?q?H=C3=A5vard_Flaget_Aasen?= <[email protected]>
2 Date: Wed, 25 Mar 2020 15:05:55 +0100
3 Subject: disable test for python3.8
4
5 ---
6 t/unit/security/test_security.py | 2 ++
7 1 file changed, 2 insertions(+)
8
9 diff --git a/t/unit/security/test_security.py b/t/unit/security/test_security.py
10 index fc9a5e6..690322d 100644
11 --- a/t/unit/security/test_security.py
12 +++ b/t/unit/security/test_security.py
13 @@ -17,6 +17,7 @@ import builtins
14 import os
15 import tempfile
16 from unittest.mock import Mock, patch
17 +import sys
18
19 import pytest
20 from kombu.exceptions import SerializerNotInstalled
21 @@ -120,6 +121,7 @@ class test_security(SecurityCase):
22 disabled.clear()
23
24 @patch('celery.current_app')
25 + @pytest.mark.skipif(sys.version_info > (3, 8), reason='breaks with python 3.8')
26 def test_setup_security__default_app(self, current_app):
27 with pytest.raises(ImproperlyConfigured):
28 setup_security()