From 5c03e97ece6ec38cae957c105cef54de872af2a4 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Wed, 1 Jun 2022 10:23:30 +0400 Subject: [PATCH] Fix compatibility with Python 3.11.0b2 --- ci.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci.sh b/ci.sh index d4f9df3a94..cc2807b643 100755 --- a/ci.sh +++ b/ci.sh @@ -141,7 +141,9 @@ else # 'coverage xml' to generate the report that it uses, and that will only # apply the ignore patterns in the current directory's .coveragerc. cp ../.coveragerc . - if pytest -r a --junitxml=../test-results.xml --run-slow ${INSTALLDIR} --cov="$INSTALLDIR" --verbose; then + # --assert=plain disables pytest assertion rewrites so that we can test 3.11.0b2 + # https://github.com/pytest-dev/pytest/issues/10008 + if pytest -r a --junitxml=../test-results.xml --run-slow ${INSTALLDIR} --cov="$INSTALLDIR" --verbose --assert-plain; then PASSED=true else PASSED=false