From 7aec123a29656edc25c99f232ae259bab056b137 Mon Sep 17 00:00:00 2001 From: Akhil Narang Date: Mon, 22 Dec 2025 17:28:08 +0530 Subject: [PATCH] chore: drop some version checks Signed-off-by: Akhil Narang --- frappe/core/doctype/rq_job/test_rq_job.py | 2 -- frappe/tests/test_perf.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/frappe/core/doctype/rq_job/test_rq_job.py b/frappe/core/doctype/rq_job/test_rq_job.py index cac1cb99e6..5bd94b4c1d 100644 --- a/frappe/core/doctype/rq_job/test_rq_job.py +++ b/frappe/core/doctype/rq_job/test_rq_job.py @@ -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) diff --git a/frappe/tests/test_perf.py b/frappe/tests/test_perf.py index 25732c8673..e733cdb519 100644 --- a/frappe/tests/test_perf.py +++ b/frappe/tests/test_perf.py @@ -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):