summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-26 20:33:19 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-26 20:34:59 +0100
commitbc855bdc8f15d60b19b8b6ae5579c84fd747d2cc (patch)
treec397119658c269312cea7483336fed77c83e5ea2 /dev-python/django-otp
parentdev-libs/libwbxml: fix compatibility with newer expat (diff)
downloadgentoo-bc855bdc8f15d60b19b8b6ae5579c84fd747d2cc.tar.gz
gentoo-bc855bdc8f15d60b19b8b6ae5579c84fd747d2cc.tar.bz2
gentoo-bc855bdc8f15d60b19b8b6ae5579c84fd747d2cc.zip
dev-python/django-otp: Fix running tests prior to install
Closes: https://bugs.gentoo.org/834107 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/django-otp')
-rw-r--r--dev-python/django-otp/django-otp-1.1.3-r1.ebuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev-python/django-otp/django-otp-1.1.3-r1.ebuild b/dev-python/django-otp/django-otp-1.1.3-r1.ebuild
index a4cbc4ab7d4e..4c9f4dfe0dad 100644
--- a/dev-python/django-otp/django-otp-1.1.3-r1.ebuild
+++ b/dev-python/django-otp/django-otp-1.1.3-r1.ebuild
@@ -36,5 +36,6 @@ BDEPEND="
python_test() {
local -x PYTHONPATH=test:${PYTHONPATH}
local -x DJANGO_SETTINGS_MODULE=test_project.settings
- django-admin test -v 2 django_otp || die "Tests fail with ${EPYTHON}"
+ "${EPYTHON}" -m django test -v 2 django_otp ||
+ die "Tests fail with ${EPYTHON}"
}