From 646c9f1aae27f9b7c56aa44cab1cebf6bdfcf492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 6 Mar 2018 00:05:55 +0100 Subject: [PATCH] Load only test_* files when looking for tests (python) --- qubesagent/xdg.py | 4 ++-- run-tests | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qubesagent/xdg.py b/qubesagent/xdg.py index 73a9b36..744950d 100755 --- a/qubesagent/xdg.py +++ b/qubesagent/xdg.py @@ -1,7 +1,7 @@ #!/usr/bin/python -from gi.repository import Gio -from gi.repository import GLib +from gi.repository import Gio # pylint: disable=import-error +from gi.repository import GLib # pylint: disable=import-error import sys import os diff --git a/run-tests b/run-tests index 00e7497..5f7e7d2 100755 --- a/run-tests +++ b/run-tests @@ -10,4 +10,4 @@ export PYTHONPATH [ -r version ] || ln -s ${ROOTDIR}/version ./ [ -r setup.py ] || ln -s ${ROOTDIR}/setup.py ./ "${PYTHON}" ./setup.py egg_info --egg-base "${TESTPYTHONPATH}" -"${PYTHON}" -m coverage run -m unittest discover -p '*.py' -v "$@" +"${PYTHON}" -m coverage run -m unittest discover -p 'test_*.py' -v "$@"