diff --git a/tests/basics/class_descriptor.py b/tests/basics/class_descriptor.py index 3f4b200bc8..27907411db 100644 --- a/tests/basics/class_descriptor.py +++ b/tests/basics/class_descriptor.py @@ -1,20 +1,21 @@ -class Descriptor: - def __get__(self, obj, cls): - print(type(obj) is Main) - print(cls is Main) - return 'result' - - def __set__(self, obj, val): - print(type(obj) is Main) - print(val) - -class Main: - Forward = Descriptor() - -m = Main() -r = m.Forward -if 'Descriptor' in repr(r.__class__): - print('SKIP') -else: - print(r) - m.Forward = 'a' +class Descriptor: + def __get__(self, obj, cls): + print(type(obj) is Main) + print(cls is Main) + return 'result' + + def __set__(self, obj, val): + print(type(obj) is Main) + print(val) + +class Main: + Forward = Descriptor() + +m = Main() +r = m.Forward +if 'Descriptor' in repr(r.__class__): + print('SKIP') +else: + print(r) + m.Forward = 'a' +