14
0
Files
python-line_profiler/use-sys-executable-python.patch
Dirk Mueller e20f3e2173 - update to 4.1.2:
* ENH: Add support for Python 3.12 #246
  * ENH: Add osx universal2 and arm64 wheels
  * ENH: Fix issue with integer overflow on 32 bit systems
  * FIX: ``get_stats`` is no longer slowed down when profiling
    many code sections #236
  * FIX: skipzeros now checks for zero hits instead of zero time
  * FIX: Fixed errors in Python 3.11 with duplicate functions.
  * FIX: ``show_text`` now increases column sizes or switches to
    scientific notation to maintain alignment
  * ENH: ``show_text`` now has new options: sort and summarize
  * ENH: Added new CLI arguments ``-srm`` to ``line_profiler`` to
    control sorting, rich printing, and summary printing.
  * ENH: New global ``profile`` function that can be enabled by
    ``--profile`` or ``LINE_PROFILE=1``.
  * ENH: New auto-profile feature in ``kernprof`` that will
    profile all functions in specified modules.
  * ENH: Kernprof now outputs instructions on how to view
    results.
  * ENH: Added readthedocs integration:
    https://kernprof.readthedocs.io/en/latest/index.html
- restrict to older Cython release
  * FIX: #100 Exception raise ZeroDivisionError
      being patient.
      for contributing it.
      this feature.
      Cournapeau for spotting this.
    * Update for compatibility with newer versions of Cython.
    * Update IPython compatibility for 0.11+. Thanks to Yaroslav

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-line_profiler?expand=0&rev=24
2023-12-05 15:53:56 +00:00

12 lines
563 B
Diff

--- line_profiler-4.1.2/tests/test_complex_case.py
+++ line_profiler-4.1.2/tests/test_complex_case.py
@@ -20,7 +20,7 @@
Make sure the complex example script works without any profiling
"""
complex_fpath = get_complex_example_fpath()
- info = ub.cmd(f'python {complex_fpath}', shell=True, verbose=3, env=ub.udict(os.environ) | {'PROFILE_TYPE': 'none'})
+ info = ub.cmd(f'{sys.executable} {complex_fpath}', shell=True, verbose=3, env=ub.udict(os.environ) | {'PROFILE_TYPE': 'none'})
assert info.stdout == ''
info.check_returncode()