]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Ignore ephemeral classes in test_all_present()
authorNils Philippsen <nils@tiptoe.de>
Sun, 12 Dec 2021 23:35:03 +0000 (18:35 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Dec 2021 13:50:06 +0000 (08:50 -0500)
commit4f0bf86eec0ea557b2df31cce28612d5f124a8a3
tree8979846e4e8961117663c9b30071ca9f061e011a
parent5f38ea78f3c024e964b7d7040ce26a2e4a03256b
Ignore ephemeral classes in test_all_present()

Fixed a regression in the test suite where the test called
``CompareAndCopyTest::test_all_present`` would fail on some platforms due
to additional testing artifacts being detected. Pull request courtesy Nils
Philippsen.

In some circumstances, ephemeral class objects that are created within
the scope of a test method don't seem to be garbage collected directly
on exit. Filter out classes created in test modules.

Fixes: #7450
Closes: #7451
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7451
Pull-request-sha: 135a8aaba2c6941460c7f45aa1a55c8f6b9eb43d

Change-Id: I621967bd916089dc1e3f98625fd2a852cd9fd712
(cherry picked from commit 4291e3c235569031948ebaacec4dde8776255e0e)
doc/build/changelog/unreleased_14/7450.rst [new file with mode: 0644]
test/sql/test_compare.py