From: Paul Brossier Date: Fri, 2 Nov 2018 19:33:34 +0000 (+0100) Subject: [tests] use pytest in parametrized tests X-Git-Tag: 0.4.9~71^2~22 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5af36fa9234e120fce5add7968ca52130c8355d8;p=aubio.git [tests] use pytest in parametrized tests --- diff --git a/python/tests/test_midi2note.py b/python/tests/test_midi2note.py index a81f5027..f71a9e1e 100755 --- a/python/tests/test_midi2note.py +++ b/python/tests/test_midi2note.py @@ -40,5 +40,5 @@ class Test_midi2note_wrong_values: assert_raises(TypeError, midi2note, "a") if __name__ == '__main__': - from unittest import main - main() + import sys, pytest + pytest.main(sys.argv)