shithub: aubio

Download patch

ref: f4fcf022b91150a1282e828b4c82895a7586a6cb
parent: cfb7fb7bf50e9b25e486d0d9a5c1cc75f1d4055d
author: Paul Brossier <piem@piem.org>
date: Sun Sep 17 10:06:03 EDT 2017

python/tests/test_aubio_cmd.py: fix for python << 3

--- a/python/tests/test_aubio_cmd.py
+++ b/python/tests/test_aubio_cmd.py
@@ -10,7 +10,11 @@
         self.a_parser = aubio.cmd.aubio_parser()
 
     def test_default_creation(self):
-        assert self.a_parser.parse_args(['-V']).show_version
+        try:
+            assert self.a_parser.parse_args(['-V']).show_version
+        except SystemExit as e:
+            url = 'https://bugs.python.org/issue9253'
+            self.skipTest('subcommand became optional in py3, see %s' % url)
 
 class aubio_cmd_utils(TestCase):