History

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

Paul Brossier committed 9 years ago

Commit f4fcf021 parent cfb7fb71 file · +5 −1Browse files

Showing the changes to python/tests (1 of 1 file). Show all

Unified · Split

python/tests/test_aubio_cmd.py+5−1
@@ -10,7 +10,11 @@ class aubio_cmd(TestCase): · 9 unmodified lines
1010 self.a_parser = aubio.cmd.aubio_parser()
1111
1212 def test_default_creation(self):
13− assert self.a_parser.parse_args(['-V']).show_version
13+ try:
14+ assert self.a_parser.parse_args(['-V']).show_version
15+ except SystemExit as e:
16+ url = 'https://bugs.python.org/issue9253'
17+ self.skipTest('subcommand became optional in py3, see %s' % url)
1418
1519 class aubio_cmd_utils(TestCase):
1620

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t