chore: drop some version checks
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
90a40dbfe0
commit
7aec123a29
2 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue