Skip to content

Commit 4859c7e

Browse files
committed
incorporate changes suggested by @ambv
1 parent 774b51d commit 4859c7e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Lib/test/support/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,13 +448,13 @@ def requires_lzma(reason='requires lzma'):
448448
TEST_DATA_DIR = os.path.join(TEST_HOME_DIR, "data")
449449

450450

451-
def darwin_malloc_err_warning():
452-
"""Assure user that loud errors generated by OS X libc's malloc are
451+
def darwin_malloc_err_warning(test_name: str):
452+
"""Assure user that loud errors generated by macOS libc's malloc are
453453
expected."""
454454
if sys.platform != 'darwin':
455455
return
456456
msg = ' NOTICE '
457-
detail = ('test_decimal may generate "malloc can\'t allocate region"\n'
457+
detail = (f'{test_name} may generate "malloc can\'t allocate region"\n'
458458
'warnings on OS X systems. This behavior is expected. Do not\n'
459459
'report a bug unless tests are also failing.')
460460

Lib/test/test_decimal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747

4848
if sys.platform == 'darwin':
49-
darwin_malloc_err_warning()
49+
darwin_malloc_err_warning('test_decimal')
5050

5151

5252
C = import_fresh_module('decimal', fresh=['_decimal'])

0 commit comments

Comments
 (0)