Update to 3.1.2
This commit is contained in:
parent
ba5d786db5
commit
200fff0803
33
1525.patch
33
1525.patch
@ -1,33 +0,0 @@
|
|||||||
From e32c985af3a419ae2ea0853ad8084a12ab62745b Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
||||||
Date: Tue, 2 Nov 2021 16:47:28 +0100
|
|
||||||
Subject: [PATCH] Tests: Make "Traceback did not match" an actual f-string
|
|
||||||
|
|
||||||
Otherwise the failure looks like this:
|
|
||||||
|
|
||||||
> assert (
|
|
||||||
m is not None
|
|
||||||
), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
|
|
||||||
E AssertionError: Traceback did not match:
|
|
||||||
E
|
|
||||||
E {''.join(tb)}
|
|
||||||
E expected:
|
|
||||||
E {expected_tb}
|
|
||||||
E assert None is not None
|
|
||||||
---
|
|
||||||
tests/test_debug.py | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/tests/test_debug.py b/tests/test_debug.py
|
|
||||||
index 0aec78ae4..c639bbc29 100644
|
|
||||||
--- a/tests/test_debug.py
|
|
||||||
+++ b/tests/test_debug.py
|
|
||||||
@@ -25,7 +25,7 @@ def assert_traceback_matches(self, callback, expected_tb):
|
|
||||||
m = re.search(expected_tb.strip(), "".join(tb))
|
|
||||||
assert (
|
|
||||||
m is not None
|
|
||||||
- ), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
|
|
||||||
+ ), f"Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
|
|
||||||
|
|
||||||
def test_runtime_error(self, fs_env):
|
|
||||||
def test():
|
|
@ -1,15 +1,12 @@
|
|||||||
%global srcname Jinja2
|
%global srcname Jinja2
|
||||||
|
|
||||||
Name: python-jinja2
|
Name: python-jinja2
|
||||||
Version: 3.0.3
|
Version: 3.1.2
|
||||||
Release: 7%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: General purpose template engine
|
Summary: General purpose template engine
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://palletsprojects.com/p/jinja/
|
URL: https://palletsprojects.com/p/jinja/
|
||||||
Source0: %{pypi_source}
|
Source0: %{pypi_source %srcname}
|
||||||
|
|
||||||
# Tests: Make "Traceback did not match" an actual f-string
|
|
||||||
Patch1: https://github.com/pallets/jinja/pull/1525.patch
|
|
||||||
|
|
||||||
# Enable building without docs to avoid a circular dependency between this
|
# Enable building without docs to avoid a circular dependency between this
|
||||||
# and python-sphinx:
|
# and python-sphinx:
|
||||||
@ -85,6 +82,9 @@ rm -rvf docs/_build/html/.buildinfo
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon May 01 2023 Sandro Mani <manisandro@gmail.com> - 3.1.2-1
|
||||||
|
- Update to 3.1.2
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-7
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (Jinja2-3.0.3.tar.gz) = 51703d396ffe35155ed216922294441e20d44cd1ab69674140146375d4964654cdb32b38945f22916e0de917bbc0cf406cb680c2e569f9225dbe1fe4063be0b0
|
SHA512 (Jinja2-3.1.2.tar.gz) = 5dfe122c1beef5305b34d25f22f96607bd3a6cba098b03091850ea36fefe62b645a7218d7584b35bea252393ac922c9bb3654a9e90f23bcfb273e811fcf2f2c1
|
||||||
|
Loading…
Reference in New Issue
Block a user