From ac77cf535d4d0858749bde19bff268385c8e565f Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Sat, 25 Mar 2017 11:07:59 +0000 Subject: MAINT: Replace unicode() with u prefix --- numpy/lib/tests/test_arraypad.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'numpy/lib/tests/test_arraypad.py') diff --git a/numpy/lib/tests/test_arraypad.py b/numpy/lib/tests/test_arraypad.py index d037962e6..056aa4582 100644 --- a/numpy/lib/tests/test_arraypad.py +++ b/numpy/lib/tests/test_arraypad.py @@ -986,10 +986,7 @@ class TestNdarrayPadWidth(TestCase): class TestUnicodeInput(TestCase): def test_unicode_mode(self): - try: - constant_mode = unicode('constant') - except NameError: - constant_mode = 'constant' + constant_mode = u'constant' a = np.pad([1], 2, mode=constant_mode) b = np.array([0, 0, 1, 0, 0]) assert_array_equal(a, b) -- cgit v1.2.1