Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-examples for 
openSUSE:Factory checked in at 2023-10-19 22:50:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-examples (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-examples.new.1945 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-examples"

Thu Oct 19 22:50:59 2023 rev:2 rq:1119081 version:0.0.10

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-examples/python-pytest-examples.changes
    2023-10-17 20:24:37.814508849 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-examples.new.1945/python-pytest-examples.changes
  2023-10-19 22:53:58.704922954 +0200
@@ -1,0 +2,5 @@
+Thu Oct 19 16:35:18 UTC 2023 - Ondřej Súkup <mimi...@gmail.com>
+
+- add test-ruff-0.1.0.patch to fix tests with ruvv-0.1.0 
+
+-------------------------------------------------------------------

New:
----
  test-ruff-0.1.0.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-examples.spec ++++++
--- /var/tmp/diff_new_pack.BrUNQx/_old  2023-10-19 22:53:59.320945297 +0200
+++ /var/tmp/diff_new_pack.BrUNQx/_new  2023-10-19 22:53:59.324945441 +0200
@@ -24,16 +24,18 @@
 URL:            https://github.com/pydantic/pytest-examples 
 # sdist without tests
 Source:         
https://github.com/pydantic/pytest-examples/archive/refs/tags/v%{version}.tar.gz#/pytest-examples-%{version}.tar.gz
-BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module pip}
+# PATCH-FIX-UPSTREAM test-ruff-0.1.0.patch - fix tests for ruff-0.1.0
+Patch0:         test-ruff-0.1.0.patch
+BuildRequires:  %{python_module black}
 BuildRequires:  %{python_module hatchling}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module ruff}
-BuildRequires:  %{python_module black}
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
+Requires:       python-black
 Requires:       python-pytest
 Requires:       python-ruff
-Requires:       python-black
 BuildArch:      noarch
 %python_subpackages
 

++++++ test-ruff-0.1.0.patch ++++++
>From cade1306918e9984d0d45d5e274d01b734b5fd3a Mon Sep 17 00:00:00 2001
From: Anton Zhukharev <anc...@altlinux.org>
Date: Wed, 18 Oct 2023 09:38:34 +0300
Subject: [PATCH] update tests for ruff>=0.1.0

---
 tests/test_run_examples.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_run_examples.py b/tests/test_run_examples.py
index 1dcfba1..4330d71 100644
--- a/tests/test_run_examples.py
+++ b/tests/test_run_examples.py
@@ -114,7 +114,7 @@ def test_find_run_examples(example: CodeExample, 
eval_example: EvalExample):
         '  my_file.md:2:8: F401 [*] `sys` imported but unused\n'
         '  my_file.md:3:7: F821 Undefined name `missing`\n'
         '  Found 2 errors.\n'
-        '  [*] 1 potentially fixable with the --fix option.\n'
+        '  [*] 1 fixable with the `--fix` option.\n'
         '=== short test summary info ===\n'
     ) in output
 

Reply via email to