Skip to content

Commit

Permalink
jinja2-py37: pytest compat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacks committed Dec 2, 2024
1 parent d27710a commit 51d1b05
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ Depends: <<
<<
Source: https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-%v.tar.gz
Source-Checksum: SHA256(611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7)
PatchScript: <<
#!/bin/sh -ev
if [ '%type_pkg[python]' == '37' ]; then
# compatibility with pytest >= 7.2:
# backport from jinja 3.1.3
perl -pi -e 's/def teardown/def teardown_method/' tests/test_loader.py
fi
<<

CompileScript: <<
chmod u+w *
Expand Down

0 comments on commit 51d1b05

Please sign in to comment.