Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Master:Ubuntu2404-Uyuni-Client-Tools:Build-Dependencies
saltbundlepy-msgpack
fix_test_deprecations.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_test_deprecations.patch of Package saltbundlepy-msgpack
--- a/test/test_buffer.py 2018-01-10 10:48:37.000000000 +0300 +++ b/test/test_buffer.py 2021-10-25 15:58:28.466265288 +0300 @@ -7,7 +7,7 @@ def test_unpack_buffer(): from array import array buf = array('b') - buf.fromstring(packb((b'foo', b'bar'))) + buf.frombytes(packb((b'foo', b'bar'))) obj = unpackb(buf, use_list=1) assert [b'foo', b'bar'] == obj --- a/test/test_extension.py 2018-01-10 10:48:37.000000000 +0300 +++ b/test/test_extension.py 2021-10-25 15:55:42.392648448 +0300 @@ -40,7 +40,7 @@ print('default called', obj) if isinstance(obj, array.array): typecode = 123 # application specific typecode - data = obj.tostring() + data = obj.tobytes() return ExtType(typecode, data) raise TypeError("Unknown type object %r" % (obj,)) @@ -48,7 +48,7 @@ print('ext_hook called', code, data) assert code == 123 obj = array.array('d') - obj.fromstring(data) + obj.frombytes(data) return obj obj = [42, b'hello', array.array('d', [1.1, 2.2, 3.3])]
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