shithub: aubio

Download patch

ref: 9b7f238ab4bb6e2de6fbc0c65ebdabea9f8f2a32
parent: e76842e70dd5d6b326096b53afd24542636a7462
author: Paul Brossier <piem@piem.org>
date: Mon Apr 18 20:45:12 EDT 2016

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

--- a/python/tests/test_note2midi.py
+++ b/python/tests/test_note2midi.py
@@ -1,6 +1,8 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 
+from __future__ import unicode_literals
+
 from aubio import note2midi, freq2note
 import unittest
 
@@ -14,13 +16,13 @@
         ( 'A4', 69 ),
         ( 'A#4', 70 ),
         ( 'Bb4', 70 ),
-        ( u'B♭4', 70 ),
+        ( 'B♭4', 70 ),
         ( 'G8', 115 ),
-        ( u'G♯8', 116 ),
+        ( 'G♯8', 116 ),
         ( 'G9', 127 ),
-        ( u'G\udd2a2', 45 ),
-        ( u'B\ufffd2', 45 ),
-        ( u'A♮2', 45 ),
+        ( 'G\udd2a2', 45 ),
+        ( 'B\ufffd2', 45 ),
+        ( 'A♮2', 45 ),
         )
 
 class note2midi_good_values(unittest.TestCase):