14
0

- Update to 7.5.1:

* Fix: a pragma comment on the continuation lines of a multi-line statement
    now excludes the statement and its body, the same as if the pragma is
    on the first line.
  * Fix: very complex source files could cause a maximum recursion error when
    creating an HTML report.
  * HTML report improvements:
    + Support files (JavaScript and CSS) referenced by the HTML report now have
      hashes added to their names to ensure updated files are used instead of
      stale cached copies.
    + Missing branch coverage explanations that said "the condition was never
      false" now read "the condition was always true" because it's easier to
      understand.
    + Column sort order is remembered better as you move between the index
      pages.
  * Added initial support for function and class reporting in the HTML report.
  * Other HTML report improvements:
    + There is now a "hide covered" checkbox to filter out 100% files.
    + The index page is always sorted by one of its columns, with clearer
      indications of the sorting.
    + The "previous file" shortcut key didn't work on the index page, but now
      it does.
  * The debug output showing which configuration files were tried now shows
    absolute paths to help diagnose problems where settings aren't taking
    effect, and is renamed from "attempted_config_files" to the more logical
    "config_files_attempted."
  * Fix: in some cases, even with [run] relative_files=True, a data file
    could be created with absolute path names.  When combined with other
    relative data files, it was random whether the absolute file names would
    be made relative or not. If they weren't, then a file would be listed

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=129
This commit is contained in:
2024-05-10 03:07:01 +00:00
committed by Git OBS Bridge
parent 7d130be0e2
commit aed5dc7064
4 changed files with 71 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-coverage
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-coverage
Version: 7.3.2
Version: 7.5.1
Release: 0
Summary: Code coverage measurement for Python
License: Apache-2.0
@@ -32,7 +32,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python
Requires(post): update-alternatives
Requires(postun):update-alternatives
Requires(postun): update-alternatives
# coverage[toml]
Recommends: python-tomli
# SECTION test requirements
@@ -76,6 +76,8 @@ cp %{python_sitearch}/zzzz-import-failed-hooks.pth build/mysite/
# the tests need the empty leading part for importing local test projects"
export PYTHONPATH=":$PWD/build/mysite"
export COVERAGE_CORE="pytrace"
%python_exec -mcoverage debug sys
# d:l:p:backports 15.4_py39 does not have python3
@@ -91,14 +93,14 @@ $mypython igor.py zip_mods
donttest="test_version"
# test_xdist_sys_path_nuttiness_is_fixed - xdist check that we actually fail on purpose
donttest+=" or test_xdist_sys_path_nuttiness_is_fixed"
# test_debug_sys_ctracer - requires dep on ctracer
donttest+=" or test_debug_sys_ctracer"
# does not find a usable venv
donttest+=" or test_venv"
# writes in /usr/
donttest+=" or test_process"
# requires additional plugins
donttest+=" or test_plugins"
# asserts PYTHONPATH is empty, which it can't be
donttest+=" or test_report_wildcard or test_run_omit_vs_report_omit"
%pytest_arch -n auto --no-flaky-report -k "$donttest" -rp ||:
%pytest_arch -n auto --no-flaky-report -k "not ($donttest)"