Commit ad038ca1 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

tests/class_descriptor.py: Fix line-endings (were CRLF).

parent 28fa84b4
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'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment