summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2023-05-17 13:15:25 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2023-05-17 13:15:25 +0000
commitc222723168c0f53d8b80ba58463831cdf9c0e8da (patch)
treef35d2b128cad0c55f8b1d5010bdafb0f5ee3ee96
parent499c9213744bb2ecab4a6dc2450d2744f8cf30c3 (diff)
parent73533d4a4cdfaea3f769e7f58691ceb06aac8eed (diff)
downloadsqlalchemy-c222723168c0f53d8b80ba58463831cdf9c0e8da.tar.gz
Merge "omit pypy from sizeof tests" into main
-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