conflicts with a subquery or column of the same name
on the parent object. [ticket:1019]
- - Removed a class-member inspection step from attribute
- instrumentation that could be problematic when integrating
- with other frameworks.
+ - Adjusted class-member inspection durint attribute and
+ collection instrumentation that could be problematic when
+ integrating with other frameworks.
- declarative extension
- Joined table inheritance mappers use a slightly relaxed
methods = roles.pop('methods', {})
for name in dir(cls):
- method = getattr(cls, name)
+ method = getattr(cls, name, None)
if not callable(method):
continue
o = list(p2.children)
assert len(o) == 3
+
+class InstrumentationTest(TestBase):
+
+ def test_uncooperative_descriptor_in_sweep(self):
+ class DoNotTouch(object):
+ def __get__(self, obj, owner):
+ raise AttributeError
+
+ class Touchy(list):
+ no_touch = DoNotTouch()
+
+ assert 'no_touch' in Touchy.__dict__
+ assert not hasattr(Touchy, 'no_touch')
+ assert 'no_touch' in dir(Touchy)
+
+ instrumented = collections._instrument_class(Touchy)
+ assert True
+
if __name__ == "__main__":
testenv.main()