2022-05-09 17:04:49 +02:00
|
|
|
---
|
2024-03-12 09:46:16 +01:00
|
|
|
Lib/test/test_capi/test_misc.py | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
2022-05-09 17:04:49 +02:00
|
|
|
|
2023-04-28 00:23:56 +02:00
|
|
|
--- a/Lib/test/test_capi/test_misc.py
|
|
|
|
+++ b/Lib/test/test_capi/test_misc.py
|
2024-03-12 09:46:16 +01:00
|
|
|
@@ -40,6 +40,8 @@ import _testinternalcapi
|
|
|
|
# Were we compiled --with-pydebug or with #define Py_DEBUG?
|
|
|
|
Py_DEBUG = hasattr(sys, 'gettotalrefcount')
|
|
|
|
|
|
|
|
+# Which version of the SLE distro we build on?
|
|
|
|
+SLE_VERSION = int(os.environ.get('SLE_VERSION', '0'), 10)
|
|
|
|
|
|
|
|
NULL = None
|
|
|
|
|
|
|
|
@@ -1281,6 +1283,7 @@ class PyMemDebugTests(unittest.TestCase)
|
2022-05-09 17:04:49 +02:00
|
|
|
def test_pyobject_forbidden_bytes_is_freed(self):
|
|
|
|
self.check_pyobject_is_freed('check_pyobject_forbidden_bytes_is_freed')
|
|
|
|
|
2024-03-12 09:46:16 +01:00
|
|
|
+ @unittest.skipIf(0 < SLE_VERSION < 150300, 'Failing on Leap 15.*')
|
2022-05-09 17:04:49 +02:00
|
|
|
def test_pyobject_freed_is_freed(self):
|
|
|
|
self.check_pyobject_is_freed('check_pyobject_freed_is_freed')
|
|
|
|
|