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 @@
11 #! /usr/bin/env python
22 # -*- coding: utf-8 -*-
33
4+from __future__ import unicode_literals
5+
46 from aubio import note2midi, freq2note
57 import unittest
68
@@ -14,13 +16,13 @@ list_of_known_notes = ( · 7 unmodified lines
1416 ( 'A4', 69 ),
1517 ( 'A#4', 70 ),
1618 ( 'Bb4', 70 ),
17− ( u'B♭4', 70 ),
19+ ( 'B♭4', 70 ),
1820 ( 'G8', 115 ),
19− ( u'G♯8', 116 ),
21+ ( 'G♯8', 116 ),
2022 ( 'G9', 127 ),
21− ( u'G\udd2a2', 45 ),
22− ( u'B\ufffd2', 45 ),
23− ( u'A♮2', 45 ),
23+ ( 'G\udd2a2', 45 ),
24+ ( 'B\ufffd2', 45 ),
25+ ( 'A♮2', 45 ),
2426 )
2527
2628 class 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