Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:ALP:Source:Standard:Core:0.1
python-vncdotool
py311-compat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File py311-compat.patch of Package python-vncdotool
Index: vncdotool-1.0.0/tests/unit/helpers.py =================================================================== --- vncdotool-1.0.0.orig/tests/unit/helpers.py +++ vncdotool-1.0.0/tests/unit/helpers.py @@ -1,5 +1,7 @@ import sys -from unittest.mock import Mock, _importer +import pkgutil +from unittest.mock import Mock + from functools import wraps class _isolate(object): @@ -102,7 +104,7 @@ def isolate(target, excludes=None): ``isolate`` borrows heavily from DingusTestCase. """ - target = _importer(target) + target = pkgutil.resolve_name(target) return _isolate(target, excludes)
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