diff --git a/build-and-test-py-project.sh b/build-and-test-py-project.sh
index c74b4ec928f07e5b9799ed84eee74342d1d5a334..08035f596a67e99474afccbd0203d7cac2bc5b46 100644
--- a/build-and-test-py-project.sh
+++ b/build-and-test-py-project.sh
@@ -55,9 +55,7 @@ export XDG_CACHE_HOME=$HOME/.cache/$CI_RUNNER_ID
 $PIP install --upgrade pip
 $PIP install setuptools
 
-# Pinned to 3.0.4 because of https://github.com/pytest-dev/pytest/issues/2434
-# Install before a newer version gets pulled in as a dependency
-#$PIP install pytest==3.0.4 pytest-warnings==0.2.0
+$PIP install pytest
 
 if test "$EXTRA_INSTALL" != ""; then
   for i in $EXTRA_INSTALL ; do