Skip to content

Commit 786e2d7

Browse files
committed
Allow test_kernprof_sys_restoration to match python3.XX binaries
Allows tests to pass on Debian package builds where multiple Python 3 versions may be supported at the same time. From: https://bugs.debian.org/1122001
1 parent 630abb0 commit 786e2d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_kernprof.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def main():
242242
{'^Output to stdout': True,
243243
r"^Wrote .* '.*script\.py\.lprof'": True,
244244
r'^Inspect results with:''\n'
245-
r'python -m line_profiler .*script\.py\.lprof': True,
245+
r'\S*python\S* -m line_profiler .*script\.py\.lprof': True,
246246
r'line_profiler\.autoprofile\.autoprofile'
247247
r'\.run\(\n(?:.+,\n)*.*\)': False,
248248
r'^\[kernprof .*\]': False,
@@ -252,7 +252,7 @@ def main():
252252
{'^Output to stdout': True,
253253
r"^Wrote .* '.*script\.py\.lprof'": True,
254254
r'^Inspect results with:''\n'
255-
r'python -m line_profiler .*script\.py\.lprof': False,
255+
r'\S*python\S* -m line_profiler .*script\.py\.lprof': False,
256256
r'line_profiler\.autoprofile\.autoprofile'
257257
r'\.run\(\n(?:.+,\n)*.*\)': False,
258258
r'^\[kernprof .*\]': False,
@@ -262,7 +262,7 @@ def main():
262262
{'^Output to stdout': True,
263263
r"^\[kernprof .*\] Wrote .* '.*script\.py\.lprof'": True,
264264
r'Inspect results with:''\n'
265-
r'python -m line_profiler .*script\.py\.lprof': False,
265+
r'\S*python\S* -m line_profiler .*script\.py\.lprof': False,
266266
r'line_profiler\.autoprofile\.autoprofile'
267267
r'\.run\(\n(?:.+,\n)*.*\)': True,
268268
r'^Function: main': True},

0 commit comments

Comments
 (0)