Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
python-mock
unittest2-fallback.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File unittest2-fallback.patch of Package python-mock
Index: mock-2.0.0/mock/tests/support.py =================================================================== --- mock-2.0.0.orig/mock/tests/support.py +++ mock-2.0.0/mock/tests/support.py @@ -1,7 +1,6 @@ import sys info = sys.version_info -import unittest2 try: Index: mock-2.0.0/mock/tests/testcallable.py =================================================================== --- mock-2.0.0.orig/mock/tests/testcallable.py +++ mock-2.0.0/mock/tests/testcallable.py @@ -2,7 +2,11 @@ # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest + from mock.tests.support import is_instance, X, SomeClass from mock import ( Index: mock-2.0.0/mock/tests/testhelpers.py =================================================================== --- mock-2.0.0.orig/mock/tests/testhelpers.py +++ mock-2.0.0/mock/tests/testhelpers.py @@ -3,7 +3,10 @@ # http://www.voidspace.org.uk/python/mock/ import six -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest from mock import ( call, create_autospec, MagicMock, Index: mock-2.0.0/mock/tests/testmagicmethods.py =================================================================== --- mock-2.0.0.orig/mock/tests/testmagicmethods.py +++ mock-2.0.0/mock/tests/testmagicmethods.py @@ -16,7 +16,11 @@ import sys import textwrap import six -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest + from mock import Mock, MagicMock from mock.mock import _magics Index: mock-2.0.0/mock/tests/testmock.py =================================================================== --- mock-2.0.0.orig/mock/tests/testmock.py +++ mock-2.0.0/mock/tests/testmock.py @@ -8,7 +8,10 @@ import sys import tempfile import six -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest import mock from mock import ( Index: mock-2.0.0/mock/tests/testpatch.py =================================================================== --- mock-2.0.0.orig/mock/tests/testpatch.py +++ mock-2.0.0/mock/tests/testpatch.py @@ -6,7 +6,10 @@ import os import sys import six -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest from mock.tests import support from mock.tests.support import SomeClass, is_instance, callable Index: mock-2.0.0/mock/tests/testsentinel.py =================================================================== --- mock-2.0.0.orig/mock/tests/testsentinel.py +++ mock-2.0.0/mock/tests/testsentinel.py @@ -2,7 +2,10 @@ # E-mail: fuzzyman AT voidspace DOT org DOT uk # http://www.voidspace.org.uk/python/mock/ -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest from mock import sentinel, DEFAULT Index: mock-2.0.0/mock/tests/testwith.py =================================================================== --- mock-2.0.0.orig/mock/tests/testwith.py +++ mock-2.0.0/mock/tests/testwith.py @@ -4,7 +4,10 @@ from warnings import catch_warnings -import unittest2 as unittest +try: + import unittest2 as unittest +except ImportError: + import unittest from mock.tests.support import is_instance from mock import MagicMock, Mock, patch, sentinel, mock_open, call
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