summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2020-09-11 14:27:30 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2020-09-11 14:27:30 -0400
commit26d2c43c141ba6240fd2d2e01c280ecbe64c3faf (patch)
treea4a6898f7819c4ef9059adbe06a1c07f93a145df
parent73cdd6c21fb5a9699ab8987f59c21ddef3d0b896 (diff)
downloadsqlalchemy-26d2c43c141ba6240fd2d2e01c280ecbe64c3faf.tar.gz
try to debug failing test on github workers
Change-Id: I18c4761dba96b8abeb1461974ee6ed19b299dfdf
-rw-r--r--test/orm/declarative/test_mixin.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/orm/declarative/test_mixin.py b/test/orm/declarative/test_mixin.py
index 6189014aa..79f45e353 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):