public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-git-changelog] rawhide: Patch test for Python 3.16 regression instead of skipping it
@ 2026-11-23 11:54 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-11-23 11:54 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-git-changelog
Branch : rawhide
Commit : 0ac962d7840a903b7b3bf653f416ee1b24f83142
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-11-23T11:44:56+00:00
Stats  : +32/-5 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-git-changelog/c/0ac962d7840a903b7b3bf653f416ee1b24f83142?branch=rawhide

Log:
Patch test for Python 3.16 regression instead of skipping it

---
diff --git a/ba7609d33e01066e40b1e8f9c55e950e0bdb7c76.patch b/ba7609d33e01066e40b1e8f9c55e950e0bdb7c76.patch
new file mode 100644
index 0000000..4d28d21
--- /dev/null
+++ b/ba7609d33e01066e40b1e8f9c55e950e0bdb7c76.patch
@@ -0,0 +1,23 @@
+From ba7609d33e01066e40b1e8f9c55e950e0bdb7c76 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= <dev@pawamoy.fr>
+Date: Mon, 23 Nov 2026 12:20:57 +0100
+Subject: [PATCH] tests: Fix remote URL (/ instead of :)
+
+Issue-148: https://github.com/pawamoy/git-changelog/issues/148
+---
+ tests/test_end_to_end.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/test_end_to_end.py b/tests/test_end_to_end.py
+index 9023f77..2cca1e3 100644
+--- a/tests/test_end_to_end.py
++++ b/tests/test_end_to_end.py
+@@ -497,7 +497,7 @@ def test_removing_credentials_from_remotes(repo: GitRepo) -> None:
+         "user:password",
+     ]
+     for creds in credentials:
+-        repo.git("remote", "set-url", "origin", f"https://{creds}@github.com:example/example")
++        repo.git("remote", "set-url", "origin", f"https://{creds}@github.com/example/example")
+         changelog = Changelog(repo.path)
+         assert creds not in changelog.remote_url
+         assert urlunsplit(urlsplit(changelog.remote_url)) == changelog.remote_url

diff --git a/python-git-changelog.spec b/python-git-changelog.spec
index 7cf2174..ed36b08 100644
--- a/python-git-changelog.spec
+++ b/python-git-changelog.spec
@@ -8,6 +8,15 @@ License:        ISC
 URL:            https://github.com/pawamoy/git-changelog
 Source:         %{url}/archive/%{version}/git-changelog-%{version}.tar.gz
 
+# tests: Fix remote URL (/ instead of :)
+# https://github.com/pawamoy/git-changelog/commit/ba7609d33e01066e40b1e8f9c55e950e0bdb7c76
+#
+# Fixes:
+#
+# bug: Python 3.16.0a2: `test_removing_credentials_from_remotes` fails
+# https://github.com/pawamoy/git-changelog/issues/148
+Patch:          %{url}/commit/ba7609d33e01066e40b1e8f9c55e950e0bdb7c76.patch
+
 BuildArch:      noarch
 
 BuildSystem:    pyproject
@@ -64,11 +73,6 @@ git tag %{version}
 %if %{with check}
 # Requires griffe and mkdocstrings, both not packaged
 ignore="${ignore-} --ignore=tests/test_api.py"
-%if v"0%{?python3_version}" >= v"3.16"
-# bug: Python 3.16.0a2: `test_removing_credentials_from_remotes` fails
-# https://github.com/pawamoy/git-changelog/issues/148
-k="${k-}${k+ and }not test_removing_credentials_from_remotes"
-%endif
 %pytest -v -rs ${ignore-} -k "${k-}"
 %endif
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 11:54 [rpms/python-git-changelog] rawhide: Patch test for Python 3.16 regression instead of skipping it Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox