Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1
python-nose
nose-fix-skip-test-plugin.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nose-fix-skip-test-plugin.patch of Package python-nose
Index: python-nose/nose-1.3.1/nose/plugins/skip.py =================================================================== --- python-nose.orig/nose-1.3.1/nose/plugins/skip.py +++ python-nose/nose-1.3.1/nose/plugins/skip.py @@ -12,19 +12,14 @@ from nose.plugins.errorclass import Erro # on SkipTest: # - unittest SkipTest is first preference, but it's only available # for >= 2.7 -# - unittest2 SkipTest is second preference for older pythons. This -# mirrors logic for choosing SkipTest exception in testtools -# - if none of the above, provide custom class +# - for python <= 2.6 provide custom class SkipTest try: from unittest.case import SkipTest except ImportError: - try: - from unittest2.case import SkipTest - except ImportError: - class SkipTest(Exception): - """Raise this exception to mark a test as skipped. - """ - pass + class SkipTest(Exception): + """Raise this exception to mark a test as skipped. + """ + pass class Skip(ErrorClassPlugin):
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