chore: drop some version checks

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2025-12-22 17:28:08 +05:30
parent 90a40dbfe0
commit 7aec123a29
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F
2 changed files with 2 additions and 4 deletions

View file

@ -178,8 +178,6 @@ class TestRQJob(IntegrationTestCase):
LAST_MEASURED_USAGE += 2
# Observed higher usage on 3.14. Temporarily raising the limit
from sys import version_info
LAST_MEASURED_USAGE += 5
self.assertLessEqual(rss, LAST_MEASURED_USAGE * 1.05, msg)

View file

@ -193,7 +193,7 @@ class TestPerformance(IntegrationTestCase):
"""
query = "select * from tabUser"
expected_refcount = 1 if sys.version_info >= (3, 14) else 2
expected_refcount = 1
for kwargs in ({}, {"as_dict": True}, {"as_list": True}):
result = frappe.db.sql(query, **kwargs)
self.assertEqual(sys.getrefcount(result), expected_refcount) # Note: This always returns +1
@ -201,7 +201,7 @@ class TestPerformance(IntegrationTestCase):
def test_no_cyclic_references(self):
doc = frappe.get_doc("User", "Administrator")
expected_refcount = 1 if sys.version_info >= (3, 14) else 2
expected_refcount = 1
self.assertEqual(sys.getrefcount(doc), expected_refcount) # Note: This always returns +1
def test_get_doc_cache_calls(self):