From: Mike Bayer Date: Mon, 15 May 2023 15:37:48 +0000 (-0400) Subject: omit pypy from sizeof tests X-Git-Tag: rel_2_0_14~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73533d4a4cdfaea3f769e7f58691ceb06aac8eed;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git omit pypy from sizeof tests Fixed test that relied on the ``sys.getsizeof()`` function to not run on pypy, where this function appears to have different behavior than it does on cpython. Fixes: #9789 Change-Id: I07b52197c3537c0a3fb7bec0f2caa587dc04cc86 --- diff --git a/doc/build/changelog/unreleased_20/9789.rst b/doc/build/changelog/unreleased_20/9789.rst new file mode 100644 index 0000000000..bae1537cd5 --- /dev/null +++ b/doc/build/changelog/unreleased_20/9789.rst @@ -0,0 +1,7 @@ +.. change:: + :tags: bug, tests, pypy + :tickets: 9789 + + Fixed test that relied on the ``sys.getsizeof()`` function to not run on + pypy, where this function appears to have different behavior than it does + on cpython. diff --git a/test/orm/test_cache_key.py b/test/orm/test_cache_key.py index 884baed62b..5e5a857611 100644 --- a/test/orm/test_cache_key.py +++ b/test/orm/test_cache_key.py @@ -1143,7 +1143,9 @@ class EmbeddedSubqTest( Base.registry.configure() @testing.combinations( - "tuples", ("memory", testing.requires.is64bit), argnames="assert_on" + "tuples", + ("memory", testing.requires.is64bit + testing.requires.cpython), + argnames="assert_on", ) def test_cache_key_gen(self, assert_on): Employee = self.classes.Employee