diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-11 17:06:26 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-11 17:06:26 -0400 |
commit | 4a1fef72a49b3b1b9872f52ffbc44b5ab5228562 (patch) | |
tree | c248113235cd770bf7c96e2c7e992ea36f6d211d | |
parent | 9474eebb5b294d7d9eee37ed2252b3d404e2dfc6 (diff) | |
download | sqlalchemy-4a1fef72a49b3b1b9872f52ffbc44b5ab5228562.tar.gz |
debug
Change-Id: Ia7e9ef6eae43693b4949585155cb6f9761c3b00b
-rw-r--r-- | test/orm/declarative/test_mixin.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/test/orm/declarative/test_mixin.py b/test/orm/declarative/test_mixin.py index 5612a5db4..1425f8f99 100644 --- a/test/orm/declarative/test_mixin.py +++ b/test/orm/declarative/test_mixin.py @@ -1700,11 +1700,18 @@ class DeclaredAttrTest(DeclarativeTestBase, testing.AssertsCompiledSQL): ): actual_a = Base.registry._class_registry["AIshClass"] refs = gc.get_referents(actual_a) - assert False, "registry keys: %s, obj: %s %s referents: %s" % ( - list(Base.registry._class_registry.keys()), - Base.registry._class_registry["AIshClass"], - status, - refs, + assert False, ( + "gc enable: %s gc debug: %s gc count: %s gc thresh %s registry keys: %s, obj: %s %s referents: %s" # noqa + % ( + gc.isenabled(), + gc.get_debug(), + gc.get_count(), + gc.get_threshold(), + list(Base.registry._class_registry.keys()), + Base.registry._class_registry["AIshClass"], + status, + refs, + ) ) def test_can_we_access_the_mixin_straight(self): |