summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2023-05-15 11:37:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2023-05-15 11:37:48 -0400
commit73533d4a4cdfaea3f769e7f58691ceb06aac8eed (patch)
treeeb09415dbd9c8778e519cd974707cf184d64c43d
parenteb286c15f096771dbb128acbe8fe03e94aa72f6a (diff)
downloadsqlalchemy-73533d4a4cdfaea3f769e7f58691ceb06aac8eed.tar.gz
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
-rw-r--r--doc/build/changelog/unreleased_20/9789.rst7
-rw-r--r--test/orm/test_cache_key.py4
2 files changed, 10 insertions, 1 deletions
diff --git a/doc/build/changelog/unreleased_20/9789.rst b/doc/build/changelog/unreleased_20/9789.rst
new file mode 100644
index 000000000..bae1537cd
--- /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 884baed62..5e5a85761 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