<div id="comment:0"></div> As reported in [#31103 comment:44](https://github.com/sagemath/sage/issues/31103#comment:44), `sage -t xyz` fails with exit code 5 if `xyz` matches no pytest tests. This is fixed. CC: @mkoeppe @saraedum Component: **build** Author: **Tobias Diez** Branch/Commit: **[`89b8754`](https://github.com/sagemath/sagetrac-mirror/commit/89b8754ad30c6a1bd1fdbd6d62011055bf13b24a)** Reviewer: **Julian Rüth** _Issue created by migration from https://trac.sagemath.org/ticket/32892_