Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:chajain
python-funcsigs
remove_unittest2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File remove_unittest2.patch of Package python-funcsigs
--- a/setup.py +++ b/setup.py @@ -47,6 +47,5 @@ setup( 'Programming Language :: Python :: Implementation :: PyPy', 'Topic :: Software Development :: Libraries :: Python Modules' ], - tests_require = ['unittest2'], - test_suite = 'unittest2.collector', + test_suite = 'tests', ) --- a/tests/test_formatannotation.py +++ b/tests/test_formatannotation.py @@ -1,6 +1,6 @@ import funcsigs -import unittest2 as unittest +import unittest class TestFormatAnnotation(unittest.TestCase): def test_string (self): --- a/tests/test_funcsigs.py +++ b/tests/test_funcsigs.py @@ -1,4 +1,4 @@ -import unittest2 as unittest +import unittest import doctest import sys --- a/tests/test_inspect.py +++ b/tests/test_inspect.py @@ -4,10 +4,13 @@ import collections import functools import sys -import unittest2 as unittest +import unittest import funcsigs as inspect +if not hasattr(unittest, 'assertRaisesRegex'): + setattr(unittest.TestCase, 'assertRaisesRegex', + unittest.TestCase.assertRaisesRegexp) class TestSignatureObject(unittest.TestCase): @staticmethod
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