From: Mike Bayer Date: Fri, 11 Sep 2020 18:27:30 +0000 (-0400) Subject: try to debug failing test on github workers X-Git-Tag: rel_1_4_0b1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d2c43c141ba6240fd2d2e01c280ecbe64c3faf;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git try to debug failing test on github workers Change-Id: I18c4761dba96b8abeb1461974ee6ed19b299dfdf --- diff --git a/test/orm/declarative/test_mixin.py b/test/orm/declarative/test_mixin.py index 6189014aa9..79f45e353c 100644 --- a/test/orm/declarative/test_mixin.py +++ b/test/orm/declarative/test_mixin.py @@ -1,3 +1,5 @@ +import sys + import sqlalchemy as sa from sqlalchemy import ForeignKey from sqlalchemy import func @@ -1693,6 +1695,13 @@ class DeclaredAttrTest(DeclarativeTestBase, testing.AssertsCompiledSQL): "A", Base.registry._class_registry, lambda cls: hasattr(cls, "my_other_prop"), + ), ( + "registry keys: %s, obj: %s refcount: %s" + % ( + list(Base.registry._class_registry.keys()), + Base.registry._class_registry["A"], + sys.getrefcount(Base.registry._class_registry["A"]), + ) ) def test_can_we_access_the_mixin_straight(self):