Imported Debian patch 4.8.10-2

This commit is contained in:
Timo Aaltonen
2020-11-23 20:48:56 +02:00
committed by Mario Fetka
parent 8bc559c5a1
commit 358acdd85f
917 changed files with 1185414 additions and 1069733 deletions

View File

@@ -89,7 +89,7 @@ def test_callback_registration():
messages.append(('Base registered callback', param))
callbacktest_base.register_callback('test', registered_callback)
class SomeClass(object):
class SomeClass:
def registered_callback(self, command, param):
messages.append(('Registered callback from another class', param))
callbacktest_base.register_callback('test', SomeClass().registered_callback)
@@ -179,12 +179,12 @@ def test_exc_callback_registration():
@pytest.mark.tier0
def test_entry_to_dict():
class FakeAttributeType(object):
class FakeAttributeType:
def __init__(self, name, syntax):
self.names = (name,)
self.syntax = syntax
class FakeSchema(object):
class FakeSchema:
def get_obj(self, type, name):
if type != ldap.schema.AttributeType:
return None