dev-python/mccabe: use py.test to run tests
authorIlya Tumaykin <itumaykin@gmail.com>
Fri, 19 Feb 2016 19:58:28 +0000 (22:58 +0300)
committerIlya Tumaykin <itumaykin@gmail.com>
Fri, 19 Feb 2016 20:21:45 +0000 (23:21 +0300)
This way testsuite actually works on Python < 3.5
because pytest decorators are respected properly.

Package-Manager: portage-2.2.27

dev-python/mccabe/mccabe-0.4.0.ebuild

index 22838d6764d299b3d53203093555eb05292794f4..f3b8516aac991615db659f54088de5dc20453287 100644 (file)
@@ -29,5 +29,5 @@ src_prepare() {
 }
 
 python_test() {
-       ${EPYTHON} test_mccabe.py || die
+       py.test -v || die "Testing failed with ${EPYTHON}"
 }