Skip to content

Commit adca68c

Browse files
committed
Tests say C or C++
1 parent cb764fd commit adca68c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_pythoncapi_compat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ def _check_refleak(test_func, verbose):
9999

100100

101101
def run_tests(module_name):
102-
title = "Test %s" % module_name
103-
if "cppext" in title:
104-
title += " (C++)"
102+
if "cppext" in module_name:
103+
lang = "C++"
105104
else:
106-
title += " (C)"
105+
lang = "C"
106+
title = "Test %s (%s)" % (module_name, lang)
107107
display_title(title)
108108

109109
testmod = import_tests(module_name)
@@ -127,7 +127,7 @@ def test_func():
127127

128128
ver = sys.version_info
129129
build = 'debug' if hasattr(sys, 'gettotalrefcount') else 'release'
130-
msg = "%s tests succeeded!" % len(tests)
130+
msg = "%s %s tests succeeded!" % (len(tests), lang)
131131
if hasattr(sys, 'implementation'):
132132
python_impl = sys.implementation.name
133133
if python_impl == 'cpython':

0 commit comments

Comments
 (0)