summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index ecf3aa3..e246c36 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -857,8 +857,13 @@ class PyMemDebugTests(unittest.TestCase):
def check(self, code):
with support.SuppressCrashReport():
- out = assert_python_failure('-c', code,
- PYTHONMALLOC=self.PYTHONMALLOC)
+ out = assert_python_failure(
+ '-c', code,
+ PYTHONMALLOC=self.PYTHONMALLOC,
+ # FreeBSD: instruct jemalloc to not fill freed() memory
+ # with junk byte 0x5a, see JEMALLOC(3)
+ MALLOC_CONF="junk:false",
+ )
stderr = out.err
return stderr.decode('ascii', 'replace')