Compatibility with pytest 7.2+

This commit is contained in:
Lumir Balhar 2022-11-15 18:54:05 +01:00
parent 157b89a305
commit 3d1777ffa9

View File

@ -36,6 +36,8 @@ to worry about undoing patches at the end of a test.
rm -rf *.egg-info
# Correct end of line encoding for README
sed -i 's/\r$//' README.rst
# Backport https://github.com/pytest-dev/pytest-mock/commit/e2016928db1147a2a46de6ee9fa878ca0e9d8fc8
sed -i "s/import py\.code//" tests/test_pytest_mock.py
%build
%py3_build