]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
omit pypy from sizeof tests
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 May 2023 15:37:48 +0000 (11:37 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 May 2023 15:37:48 +0000 (11:37 -0400)
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

doc/build/changelog/unreleased_20/9789.rst [new file with mode: 0644]
test/orm/test_cache_key.py

diff --git a/doc/build/changelog/unreleased_20/9789.rst b/doc/build/changelog/unreleased_20/9789.rst
new file mode 100644 (file)
index 0000000..bae1537
--- /dev/null
@@ -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.
index 884baed62ba1bc6239678d785fd799de355eb98d..5e5a857611c8451636ef6fb6ae7fdf923931f3d4 100644 (file)
@@ -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