From d1675a217aae1ceb0f716b3820705da310c3a28a Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Wed, 22 Jan 2014 09:50:00 -0500 Subject: [PATCH] BUG : fix failing test on 3.2 removed `u` from unicode literal which was making 3.2 test error out --- lib/matplotlib/tests/test_backend_qt4.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/matplotlib/tests/test_backend_qt4.py b/lib/matplotlib/tests/test_backend_qt4.py index a0e10e3b226e..93e2c657a133 100644 --- a/lib/matplotlib/tests/test_backend_qt4.py +++ b/lib/matplotlib/tests/test_backend_qt4.py @@ -77,7 +77,7 @@ def receive(event): def test_shift(): assert_correct_key(QtCore.Qt.Key_A, ShiftModifier, - u'A') + 'A') @cleanup @@ -85,7 +85,7 @@ def test_shift(): def test_lower(): assert_correct_key(QtCore.Qt.Key_A, QtCore.Qt.NoModifier, - u'a') + 'a') @cleanup @@ -93,7 +93,7 @@ def test_lower(): def test_control(): assert_correct_key(QtCore.Qt.Key_A, ControlModifier, - u'ctrl+a') + 'ctrl+a') @cleanup @@ -117,7 +117,7 @@ def test_unicode_lower(): def test_alt_control(): assert_correct_key(ControlKey, AltModifier, - u'alt+control') + 'alt+control') @cleanup @@ -125,7 +125,7 @@ def test_alt_control(): def test_control_alt(): assert_correct_key(AltKey, ControlModifier, - u'ctrl+alt') + 'ctrl+alt') @cleanup @@ -133,7 +133,7 @@ def test_control_alt(): def test_modifier_order(): assert_correct_key(QtCore.Qt.Key_Aacute, (ControlModifier | AltModifier | SuperModifier), - u'ctrl+alt+super+' + unichr(225)) + 'ctrl+alt+super+' + unichr(225)) @cleanup @@ -141,7 +141,7 @@ def test_modifier_order(): def test_backspace(): assert_correct_key(QtCore.Qt.Key_Backspace, QtCore.Qt.NoModifier, - u'backspace') + 'backspace') @cleanup @@ -149,7 +149,7 @@ def test_backspace(): def test_backspace_mod(): assert_correct_key(QtCore.Qt.Key_Backspace, ControlModifier, - u'ctrl+backspace') + 'ctrl+backspace') @cleanup