History

tests/test_note2midi.py: use unicode_literals, preparing for python3

Paul Brossier committed 10 years ago

Commit 9b7f2381 parent e76842e1 file · +7 −5Browse files

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

Unified · Split

python/tests/test_note2midi.py+7−5
@@ -1,6 +1,8 @@
1#! /usr/bin/env python1#! /usr/bin/env python
2# -*- coding: utf-8 -*-2# -*- coding: utf-8 -*-
3 3
4from __future__ import unicode_literals
5
4from aubio import note2midi, freq2note6from aubio import note2midi, freq2note
5import unittest7import unittest
6 8
@@ -14,13 +16,13 @@ list_of_known_notes = ( · 7 unmodified lines
14 ( 'A4', 69 ),16 ( 'A4', 69 ),
15 ( 'A#4', 70 ),17 ( 'A#4', 70 ),
16 ( 'Bb4', 70 ),18 ( 'Bb4', 70 ),
17 ( u'B♭4', 70 ),19 ( 'B♭4', 70 ),
18 ( 'G8', 115 ),20 ( 'G8', 115 ),
19 ( u'G♯8', 116 ),21 ( 'G♯8', 116 ),
20 ( 'G9', 127 ),22 ( 'G9', 127 ),
21 ( u'G\udd2a2', 45 ),23 ( 'G\udd2a2', 45 ),
22 ( u'B\ufffd2', 45 ),24 ( 'B\ufffd2', 45 ),
23 ( u'A♮2', 45 ),25 ( 'A♮2', 45 ),
24 )26 )
25 27
26class note2midi_good_values(unittest.TestCase):28class note2midi_good_values(unittest.TestCase):

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