Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP5:Update
python-social-auth-core
remove-unittest2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove-unittest2.patch of Package python-social-auth-core
Index: social-auth-core-4.0.3/social_core/tests/__init__.py =================================================================== --- /dev/null +++ social-auth-core-4.0.3/social_core/tests/__init__.py @@ -0,0 +1,6 @@ +try: + import unittest2 + import sys + sys.modules['unittest'] = unittest2 +except ImportError: + pass Index: social-auth-core-4.0.3/social_core/tests/backends/base.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/backends/base.py +++ social-auth-core-4.0.3/social_core/tests/backends/base.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest import requests from httpretty import HTTPretty Index: social-auth-core-4.0.3/social_core/tests/test_exceptions.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/test_exceptions.py +++ social-auth-core-4.0.3/social_core/tests/test_exceptions.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest from ..exceptions import SocialAuthBaseException, WrongBackend, \ AuthFailed, AuthTokenError, AuthMissingParameter, AuthStateMissing, \ Index: social-auth-core-4.0.3/social_core/tests/actions/actions.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/actions/actions.py +++ social-auth-core-4.0.3/social_core/tests/actions/actions.py @@ -1,6 +1,6 @@ import json import requests -import unittest2 as unittest +import unittest from urllib.parse import urlparse from httpretty import HTTPretty Index: social-auth-core-4.0.3/social_core/tests/backends/test_broken.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/backends/test_broken.py +++ social-auth-core-4.0.3/social_core/tests/backends/test_broken.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest from ...backends.base import BaseAuth from ..strategy import TestStrategy Index: social-auth-core-4.0.3/social_core/tests/backends/test_saml.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/backends/test_saml.py +++ social-auth-core-4.0.3/social_core/tests/backends/test_saml.py @@ -3,7 +3,7 @@ import json import os import re import sys -import unittest2 +import unittest from os import path from urllib.parse import urlparse, urlunparse, urlencode, parse_qs @@ -28,10 +28,10 @@ from ...exceptions import AuthMissingPar DATA_DIR = path.join(path.dirname(__file__), 'data') -@unittest2.skipIf('TRAVIS' in os.environ, +@unittest.skipIf('TRAVIS' in os.environ, 'Travis-ci segfaults probably due to a bad ' 'dependencies build') -@unittest2.skipIf('__pypy__' in sys.builtin_module_names, +@unittest.skipIf('__pypy__' in sys.builtin_module_names, 'dm.xmlsec not compatible with pypy') class SAMLTest(BaseBackendTest): backend_path = 'social_core.backends.saml.SAMLAuth' Index: social-auth-core-4.0.3/social_core/tests/backends/test_utils.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/backends/test_utils.py +++ social-auth-core-4.0.3/social_core/tests/backends/test_utils.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest from ..models import TestStorage from ..strategy import TestStrategy Index: social-auth-core-4.0.3/social_core/tests/test_partial.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/test_partial.py +++ social-auth-core-4.0.3/social_core/tests/test_partial.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest try: from mock import Mock, patch except ImportError: Index: social-auth-core-4.0.3/social_core/tests/test_storage.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/test_storage.py +++ social-auth-core-4.0.3/social_core/tests/test_storage.py @@ -1,5 +1,5 @@ import random -import unittest2 as unittest +import unittest from ..strategy import BaseStrategy from ..storage import UserMixin, NonceMixin, AssociationMixin, \ Index: social-auth-core-4.0.3/social_core/tests/test_utils.py =================================================================== --- social-auth-core-4.0.3.orig/social_core/tests/test_utils.py +++ social-auth-core-4.0.3/social_core/tests/test_utils.py @@ -1,5 +1,5 @@ import sys -import unittest2 as unittest +import unittest try: from unittest.mock import Mock
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor