Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-coverage for openSUSE:Factory
checked in at 2023-05-11 12:31:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-coverage (Old)
and /work/SRC/openSUSE:Factory/.python-coverage.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-coverage"
Thu May 11 12:31:52 2023 rev:56 rq:1086006 version:7.2.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-coverage/python-coverage.changes
2023-04-22 22:02:36.269985563 +0200
+++
/work/SRC/openSUSE:Factory/.python-coverage.new.1533/python-coverage.changes
2023-05-11 12:31:55.546242930 +0200
@@ -1,0 +2,34 @@
+Wed May 10 08:06:33 UTC 2023 - Daniel Garcia <[email protected]>
+
+- Add fix-tests.patch gh#nedbat/coveragepy@3fdda7d017ff
+- Update to 7.2.5:
+ * Fix: html_report() could fail with an AttributeError on isatty if
+ run in an unusual environment where sys.stdout had been replaced.
+ This is now fixed.
+- 7.2.4:
+ * Fix: with relative_files = true, specifying a specific file to
+ include or omit wouldn't work correctly (issue 1604). This is now
+ fixed, with testing help by Marc Gibbons.
+ * Fix: the XML report would have an incorrect <source> element when
+ using relative files and the source option ended with a slash
+ (issue 1541). This is now fixed, thanks to Kevin Brown-Silva.
+ * When the HTML report location is printed to the terminal, it's now
+ a terminal-compatible URL, so that you can click the location to
+ open the HTML file in your browser. Finishes issue 1523 thanks to
+ Ricardo Newbery.
+ * Docs: a new :ref:`Migrating page <migrating>` with details about
+ how to migrate between major versions of coverage.py. It currently
+ covers the wildcard changes in 7.x. Thanks, Brian Grohe.
+- 7.2.3:
+ * Fix: the :ref:`config_run_sigterm` setting was meant to capture
+ data if a process was terminated with a SIGTERM signal, but it
+ didn't always. This was fixed thanks to Lewis Gaul, closing issue
+ 1599.
+ * Performance: HTML reports with context information are now much
+ more compact. File sizes are typically as small as one-third the
+ previous size, but can be dramatically smaller. This closes issue
+ 1584 thanks to Oleh Krehel.
+ * Development dependencies no longer use hashed pins, closing issue
+ 1592.
+
+-------------------------------------------------------------------
Old:
----
coverage-7.2.2.tar.gz
New:
----
coverage-7.2.5.tar.gz
fix-tests.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-coverage.spec ++++++
--- /var/tmp/diff_new_pack.5vsw9B/_old 2023-05-11 12:31:56.202246155 +0200
+++ /var/tmp/diff_new_pack.5vsw9B/_new 2023-05-11 12:31:56.210246194 +0200
@@ -18,12 +18,14 @@
%{?sle15_python_module_pythons}
Name: python-coverage
-Version: 7.2.2
+Version: 7.2.5
Release: 0
Summary: Code coverage measurement for Python
License: Apache-2.0
URL: https://github.com/nedbat/coveragepy
Source:
https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM fix-tests.patch -- gh#nedbat/coveragepy@3fdda7d017ff
+Patch0: fix-tests.patch
BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
++++++ coverage-7.2.2.tar.gz -> coverage-7.2.5.tar.gz ++++++
++++ 7469 lines of diff (skipped)
++++++ fix-tests.patch ++++++
Index: coverage-7.2.5/tests/test_concurrency.py
===================================================================
--- coverage-7.2.5.orig/tests/test_concurrency.py
+++ coverage-7.2.5/tests/test_concurrency.py
@@ -768,10 +768,11 @@ class SigtermTest(CoverageTest):
sigterm = true
""")
out = self.run_command("coverage run handler.py")
- if env.LINUX:
- assert out == "START\nSIGTERM\nTerminated\n"
- else:
- assert out == "START\nSIGTERM\n"
+ out_lines = out.splitlines()
+ assert len(out_lines) in [2, 3]
+ assert out_lines[:2] == ["START", "SIGTERM"]
+ if len(out_lines) == 3:
+ assert out_lines[2] == "Terminated"
out = self.run_command("coverage report -m")
expected = "handler.py 5 1 80% 6"
assert self.squeezed_lines(out)[2] == expected